mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +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()) {
|
public function beforeSave(Model $model, $options = array()) {
|
||||||
$settings = $this->settings[$model->alias];
|
$settings = $this->settings[$model->alias];
|
||||||
if (!isset($settings['beforeSave']) || $settings['beforeSave'] === 'off') {
|
if (!isset($settings['beforeSave']) || $settings['beforeSave'] === 'off') {
|
||||||
return parent::beforeSave($model);
|
return parent::beforeSave($model, $options);
|
||||||
}
|
}
|
||||||
switch ($settings['beforeSave']) {
|
switch ($settings['beforeSave']) {
|
||||||
case 'on':
|
case 'on':
|
||||||
|
@ -136,7 +136,7 @@ class TestBehavior extends ModelBehavior {
|
||||||
public function afterSave(Model $model, $created, $options = array()) {
|
public function afterSave(Model $model, $created, $options = array()) {
|
||||||
$settings = $this->settings[$model->alias];
|
$settings = $this->settings[$model->alias];
|
||||||
if (!isset($settings['afterSave']) || $settings['afterSave'] === 'off') {
|
if (!isset($settings['afterSave']) || $settings['afterSave'] === 'off') {
|
||||||
return parent::afterSave($model, $created);
|
return parent::afterSave($model, $created, $options);
|
||||||
}
|
}
|
||||||
$string = 'modified after';
|
$string = 'modified after';
|
||||||
if ($created) {
|
if ($created) {
|
||||||
|
@ -168,7 +168,7 @@ class TestBehavior extends ModelBehavior {
|
||||||
public function beforeValidate(Model $model, $options = array()) {
|
public function beforeValidate(Model $model, $options = array()) {
|
||||||
$settings = $this->settings[$model->alias];
|
$settings = $this->settings[$model->alias];
|
||||||
if (!isset($settings['validate']) || $settings['validate'] === 'off') {
|
if (!isset($settings['validate']) || $settings['validate'] === 'off') {
|
||||||
return parent::beforeValidate($model);
|
return parent::beforeValidate($model, $options);
|
||||||
}
|
}
|
||||||
switch ($settings['validate']) {
|
switch ($settings['validate']) {
|
||||||
case 'on':
|
case 'on':
|
||||||
|
|
Loading…
Add table
Reference in a new issue