1
0
Fork 0
mirror of synced 2025-04-01 12:26:11 +03:00

Fix notice due to wrong variable reference

This commit is contained in:
Benjamin Eberlei 2010-10-06 23:09:49 +02:00
parent 394c67d482
commit 7551bb3762

View file

@ -573,7 +573,7 @@ class UnitOfWork implements PropertyChangedListener
$this->computeChangeSet($targetClass, $entry);
} else if ($state == self::STATE_REMOVED) {
return new InvalidArgumentException("Removed entity detected during flush: "
. self::objToStr($removedEntity).". Remove deleted entities from associations.");
. self::objToStr($entry).". Remove deleted entities from associations.");
} else if ($state == self::STATE_DETACHED) {
// Can actually not happen right now as we assume STATE_NEW,
// so the exception will be raised from the DBAL layer (constraint violation).