Commit 715da59d authored by romanb's avatar romanb

[2.0][DDC-384] Fixed getReference problem with aliases.

parent 0af8b665
......@@ -315,7 +315,7 @@ class EntityManager
if ( ! is_array($identifier)) {
$identifier = array($class->identifier[0] => $identifier);
}
$entity = $this->_proxyFactory->getProxy($entityName, $identifier);
$entity = $this->_proxyFactory->getProxy($class->name, $identifier);
$this->_unitOfWork->registerManaged($entity, $identifier, array());
return $entity;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment