Copy changes made to $this->data in beforeValidate callbacks #642

Merged
merged 1 commit into from May 9, 2012
Jump to file or symbol
Failed to load files and symbols.
+1 −0
Split
View
@@ -2178,6 +2178,7 @@ public function saveAssociated($data = null, $options = array()) {
if ($options['validate'] === 'first') {
$validates = $this->validateAssociated($data, $options);
+ $data = $this->data;
if ((!$validates && $options['atomic']) || (!$options['atomic'] && in_array(false, $validates, true))) {
return $validates;
}