Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
22 | protected function findMetadata($class) |
||
23 | { |
||
24 | $metadata = null; |
||
25 | |||
26 | try { |
||
27 | // We could not use the hasMetadataFor() method as it is not working if the entity is not loaded. But |
||
28 | // the getMetadataFor() method could throw an exception if the class is not found |
||
29 | $metadata = $this->entityManager->getMetadataFactory()->getMetadataFor($class); |
||
30 | } catch (Exception $exception) {} |
||
|
|||
31 | |||
32 | return $metadata; |
||
33 | } |
||
34 | } |
||
35 |