From 3543ccea7f100da8cd464407e69994884bcd7626 Mon Sep 17 00:00:00 2001 From: Per Persson Date: Tue, 11 Feb 2014 23:48:31 +0100 Subject: [PATCH] Pass class name to constructor. --- lib/Doctrine/ORM/UnitOfWork.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Doctrine/ORM/UnitOfWork.php b/lib/Doctrine/ORM/UnitOfWork.php index a61630d1f..6c5f2e400 100644 --- a/lib/Doctrine/ORM/UnitOfWork.php +++ b/lib/Doctrine/ORM/UnitOfWork.php @@ -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);