From 274ea780b758287388b0196224a804a20f0b3786 Mon Sep 17 00:00:00 2001 From: Mark Story Date: Tue, 21 Nov 2017 23:47:04 -0500 Subject: [PATCH] Don't use deprecated entity methods. --- src/ORM/Association/HasMany.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ORM/Association/HasMany.php b/src/ORM/Association/HasMany.php index 4335327ba96..4d2bdef1692 100644 --- a/src/ORM/Association/HasMany.php +++ b/src/ORM/Association/HasMany.php @@ -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;