1
0
mirror of synced 2025-02-20 22:23:14 +03:00

Pass class name to constructor.

This commit is contained in:
Per Persson 2014-02-11 23:48:31 +01:00
parent 7ef1063007
commit 3543ccea7f

View File

@ -1837,7 +1837,7 @@ class UnitOfWork implements PropertyChangedListener
// If the identifier is ASSIGNED, it is NEW, otherwise an error
// since the managed entity was not found.
if ( ! $class->isIdentifierNatural()) {
throw new EntityNotFoundException;
throw new EntityNotFoundException($class->getName());
}
$managedCopy = $this->newInstance($class);