| Conditions | 5 |
| Paths | 2 |
| Total Lines | 15 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 41 | protected function getClassesMetadata($path, $namespace) |
||
| 42 | { |
||
| 43 | $metadata = array(); |
||
| 44 | |||
| 45 | if ($handle = opendir($path)) { |
||
| 46 | while (false !== ($file = readdir($handle))) { |
||
| 47 | if (strstr($file, '.php') && $this->isEntity($file)) { |
||
| 48 | list($class) = explode('.', $file); |
||
| 49 | $metadata[] = $this->em->getClassMetadata($namespace.'\\'.$class); |
||
| 50 | } |
||
| 51 | } |
||
| 52 | } |
||
| 53 | |||
| 54 | return $metadata; |
||
| 55 | } |
||
| 56 | |||
| 71 |