mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Making validateAssociated overwrite data consistently with validateMany
This commit is contained in:
parent
82e87791f6
commit
f06fbb0075
1 changed files with 1 additions and 1 deletions
|
@ -2326,7 +2326,7 @@ class Model extends Object implements CakeEventListener {
|
|||
}
|
||||
|
||||
if (empty($options['deep'])) {
|
||||
$data[$this->alias] = $this->data[$this->alias];
|
||||
$data = $this->data;
|
||||
} else {
|
||||
$modelData = $this->data;
|
||||
$recordData = $modelData[$this->alias];
|
||||
|
|
Loading…
Add table
Reference in a new issue