mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
add missing params for parent call
This commit is contained in:
parent
e77a75147f
commit
beff12d8a5
1 changed files with 3 additions and 3 deletions
|
@ -112,7 +112,7 @@ class TestBehavior extends ModelBehavior {
|
|||
public function beforeSave(Model $model, $options = array()) {
|
||||
$settings = $this->settings[$model->alias];
|
||||
if (!isset($settings['beforeSave']) || $settings['beforeSave'] === 'off') {
|
||||
return parent::beforeSave($model);
|
||||
return parent::beforeSave($model, $options);
|
||||
}
|
||||
switch ($settings['beforeSave']) {
|
||||
case 'on':
|
||||
|
@ -136,7 +136,7 @@ class TestBehavior extends ModelBehavior {
|
|||
public function afterSave(Model $model, $created, $options = array()) {
|
||||
$settings = $this->settings[$model->alias];
|
||||
if (!isset($settings['afterSave']) || $settings['afterSave'] === 'off') {
|
||||
return parent::afterSave($model, $created);
|
||||
return parent::afterSave($model, $created, $options);
|
||||
}
|
||||
$string = 'modified after';
|
||||
if ($created) {
|
||||
|
@ -168,7 +168,7 @@ class TestBehavior extends ModelBehavior {
|
|||
public function beforeValidate(Model $model, $options = array()) {
|
||||
$settings = $this->settings[$model->alias];
|
||||
if (!isset($settings['validate']) || $settings['validate'] === 'off') {
|
||||
return parent::beforeValidate($model);
|
||||
return parent::beforeValidate($model, $options);
|
||||
}
|
||||
switch ($settings['validate']) {
|
||||
case 'on':
|
||||
|
|
Loading…
Add table
Reference in a new issue