diff --git a/lib/Doctrine/ORM/Proxy/ProxyFactory.php b/lib/Doctrine/ORM/Proxy/ProxyFactory.php index 92a51481c..61c697f62 100644 --- a/lib/Doctrine/ORM/Proxy/ProxyFactory.php +++ b/lib/Doctrine/ORM/Proxy/ProxyFactory.php @@ -397,7 +397,7 @@ class extends \ implements \Doctrine\ORM\Proxy\Proxy if ($original === null) { throw new \Doctrine\ORM\EntityNotFoundException(); } - foreach ($class->reflFields AS $field => $reflProperty) { + foreach ($class->reflFields as $field => $reflProperty) { $reflProperty->setValue($this, $reflProperty->getValue($original)); } unset($this->_entityPersister, $this->_identifier);