1 | <?php |
||
24 | class RelationalRepositoryFactory implements RepositoryFactory |
||
25 | { |
||
26 | /** |
||
27 | * Default repository class. |
||
28 | * |
||
29 | * @var string |
||
30 | */ |
||
31 | protected $repositoryClassName; |
||
32 | |||
33 | /** |
||
34 | * The list of EntityRepository instances. |
||
35 | * |
||
36 | * @var \Doctrine\Common\Persistence\ObjectRepository[] |
||
37 | */ |
||
38 | private $repositoryList = []; |
||
39 | |||
40 | /** |
||
41 | * RelationalRepositoryFactory constructor. |
||
42 | */ |
||
43 | public function __construct() |
||
47 | |||
48 | /** |
||
49 | * {@inheritdoc} |
||
50 | */ |
||
51 | public function getRepository(EntityManagerInterface $entityManager, $entityName): ObjectRepository |
||
64 | |||
65 | /** |
||
66 | * Create a new repository instance for an entity class. |
||
67 | * |
||
68 | * @param EntityManager $entityManager |
||
69 | * @param string $entityName |
||
70 | * |
||
71 | * @return \Doctrine\Common\Persistence\ObjectRepository |
||
72 | */ |
||
73 | private function createRepository(EntityManager $entityManager, $entityName): ObjectRepository |
||
80 | } |
||
81 |