Skip to content

Commit

Permalink
Don't use deprecated entity methods.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Nov 22, 2017
1 parent 7e2cb9b commit 274ea78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ORM/Association/HasMany.php
Expand Up @@ -247,7 +247,7 @@ protected function _saveTarget(array $foreignKeyReference, EntityInterface $pare
}

if (!empty($options['atomic'])) {
$original[$k]->errors($entity->errors());
$original[$k]->setErrors($entity->getErrors());
$entity->set($this->getProperty(), $original);

return false;
Expand Down

0 comments on commit 274ea78

Please sign in to comment.