Fix notice due to wrong variable reference
This commit is contained in:
parent
394c67d482
commit
7551bb3762
1 changed files with 1 additions and 1 deletions
|
@ -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).
|
||||
|
|
Loading…
Add table
Reference in a new issue