Skip to content
Permalink
Browse files

Making validateAssociated overwrite data consistently with validateMany

  • Loading branch information...
lorenzo committed May 10, 2012
1 parent 82e8779 commit f06fbb00754f53124236baa53369e54cfbd53a44
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/Model/Model.php
@@ -2326,7 +2326,7 @@ public function validateAssociated(&$data, $options = array()) {
}
if (empty($options['deep'])) {
$data[$this->alias] = $this->data[$this->alias];
$data = $this->data;
} else {
$modelData = $this->data;
$recordData = $modelData[$this->alias];

0 comments on commit f06fbb0

Please sign in to comment.
You can’t perform that action at this time.