diff --git a/lib/Doctrine/ORM/UnitOfWork.php b/lib/Doctrine/ORM/UnitOfWork.php index 49176da5d..c022a1ae4 100644 --- a/lib/Doctrine/ORM/UnitOfWork.php +++ b/lib/Doctrine/ORM/UnitOfWork.php @@ -731,7 +731,7 @@ class UnitOfWork implements PropertyChangedListener try { $this->computeAssociationChanges($assoc, $val); } catch (\Exception $ex) { - throw ORMInvalidArgumentException::invalidAssociation($entity, $assoc['fieldName'], $ex->value); + throw ORMInvalidArgumentException::computeAssociationChangesError($entity, $assoc['fieldName'], $ex->value); } if ( ! isset($this->entityChangeSets[$oid]) &&