Skip to content

Commit c4a77d9

Browse files
committed
Added alias for entity namespace
1 parent d0a6dd4 commit c4a77d9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Dflydev/Pimple/Provider/DoctrineOrm/DoctrineOrmServiceProvider.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,10 @@ public function register(\Pimple $app)
129129
$entity['path'] = $app['psr0_resource_locator']->findFirstDirectory($entity['resources_namespace']);
130130
}
131131

132+
if (isset($entity['alias'])) {
133+
$config->addEntityNamespace($entity['alias'], $entity['namespace']);
134+
}
135+
132136
switch ($entity['type']) {
133137
case 'annotation':
134138
$useSimpleAnnotationReader =

0 commit comments

Comments
 (0)