This repository has been archived on 2026-07-19. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
espocrm-base/application/Espo/Core/EntityManager.php
T
2013-11-28 10:25:40 +02:00

30 lines
560 B
PHP

<?php
namespace Espo\Core;
use Doctrine\Common\EventManager;
class EntityManager extends \Doctrine\ORM\Decorator\EntityManagerDecorator
{
private $metadata;
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
public function getRepository($entityName)
{
$fullName = $this->metadata->getEntityPath($entityName);
return $this->wrapped->getRepository($entityName);
}
/**
* @return \Doctrine\ORM\EntityManager
*/
public function getWrapped()
{
return $this->wrapped;
}
}