37 lines
565 B
PHP
37 lines
565 B
PHP
<?php
|
|
|
|
namespace Espo\Core\ORM;
|
|
|
|
class EntityManager extends \Espo\ORM\EntityManager
|
|
{
|
|
protected $espoMetadata;
|
|
|
|
protected $user;
|
|
|
|
public function setUser($user)
|
|
{
|
|
$this->user = $user;
|
|
}
|
|
|
|
public function getUser()
|
|
{
|
|
return $this->user;
|
|
}
|
|
|
|
public function setEspoMetadata($espoMetadata)
|
|
{
|
|
$this->espoMetadata = $espoMetadata;
|
|
}
|
|
|
|
public function normalizeRepositoryName($name)
|
|
{
|
|
return $this->espoMetadata->getRepositoryPath($name);
|
|
}
|
|
|
|
public function normalizeEntityName($name)
|
|
{
|
|
return $this->espoMetadata->getEntityPath($name);
|
|
}
|
|
}
|
|
|