1 | <?php |
||
8 | class ExtensibleClassMetadataFactory extends ClassMetadataFactory |
||
9 | { |
||
10 | /** |
||
11 | * @var EntityManagerInterface |
||
12 | */ |
||
13 | protected $entityManager; |
||
14 | |||
15 | /** |
||
16 | * Override to hold a reference to the EntityManager here as well (parent property is private). |
||
17 | * |
||
18 | * {@inheritdoc} |
||
19 | */ |
||
20 | public function setEntityManager(EntityManagerInterface $em) |
||
26 | |||
27 | /** |
||
28 | * Override to implement our custom ClassMetadata object. |
||
29 | * |
||
30 | * {@inheritdoc} |
||
31 | */ |
||
32 | protected function newClassMetadataInstance($className) |
||
36 | } |
||
37 |