adding missing options array in Model::beforeValidate(0 and Model::beforeSave() as they are called with them out of the model and it is good practice, although they are meant to be overriden; closes #5470

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7650 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
DarkAngelBGE 2008-09-23 18:50:27 +00:00
parent e245d18ed8
commit 4ce3f21608

View file

@ -2607,7 +2607,7 @@ class Model extends Overloadable {
* @return boolean True if the operation should continue, false if it should abort * @return boolean True if the operation should continue, false if it should abort
* @access public * @access public
*/ */
function beforeSave() { function beforeSave($options = array()) {
return true; return true;
} }
/** /**
@ -2641,7 +2641,7 @@ class Model extends Overloadable {
* @return boolean True if validate operation should continue, false to abort * @return boolean True if validate operation should continue, false to abort
* @access public * @access public
*/ */
function beforeValidate() { function beforeValidate($options = array()) {
return true; return true;
} }
/** /**