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