diff --git a/src/ORM/Marshaller.php b/src/ORM/Marshaller.php index c774fd49418..074158ecf69 100644 --- a/src/ORM/Marshaller.php +++ b/src/ORM/Marshaller.php @@ -124,7 +124,7 @@ public function one(array $data, array $options = []) } } - $marshallOptions = []; + $marshallOptions = []; if (isset($options['forceTargetSave'])) { $marshallOptions['forceTargetSave'] = $options['forceTargetSave']; } @@ -313,7 +313,7 @@ protected function _belongsToMany(Association $assoc, array $data, $options = [] foreach ($keys as $key => $value) { $conditions[][$target->aliasfield($key)] = $value; } - if ($forceTargetSave && !$target->exists($conditions)) { + if ($forceTargetSave && !$target->exists($conditions)) { $records[$i] = $this->one($row, $options); } }