Pass class name to constructor.
This commit is contained in:
parent
7ef1063007
commit
3543ccea7f
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue