mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
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:
parent
e245d18ed8
commit
4ce3f21608
1 changed files with 2 additions and 2 deletions
|
@ -2607,7 +2607,7 @@ class Model extends Overloadable {
|
|||
* @return boolean True if the operation should continue, false if it should abort
|
||||
* @access public
|
||||
*/
|
||||
function beforeSave() {
|
||||
function beforeSave($options = array()) {
|
||||
return true;
|
||||
}
|
||||
/**
|
||||
|
@ -2641,7 +2641,7 @@ class Model extends Overloadable {
|
|||
* @return boolean True if validate operation should continue, false to abort
|
||||
* @access public
|
||||
*/
|
||||
function beforeValidate() {
|
||||
function beforeValidate($options = array()) {
|
||||
return true;
|
||||
}
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue