Making validateAssociated overwrite data consistently with validateMany

This commit is contained in:
Jose Lorenzo Rodriguez 2012-05-10 00:52:54 -04:30
parent 82e87791f6
commit f06fbb0075

View file

@ -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];