mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-07 20:12:42 +00:00
Adhering to coding standards
This commit is contained in:
parent
32a3737cca
commit
5876744709
31 changed files with 51 additions and 52 deletions
|
@ -2136,7 +2136,7 @@ class Model extends Object {
|
|||
if (in_array($associations[$association], array('belongsTo', 'hasOne'))) {
|
||||
$validates = $this->{$association}->create($values) && $this->{$association}->validates($options);
|
||||
$return[$association][] = $validates;
|
||||
} elseif($associations[$association] === 'hasMany') {
|
||||
} elseif ($associations[$association] === 'hasMany') {
|
||||
$validates = $this->{$association}->validateMany($values, $options);
|
||||
$return[$association] = $validates;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue