Skip to content

Commit c105cb9

Browse files
committed
both entities refer to each other, so load both
1 parent 65cd707 commit c105cb9

3 files changed

Lines changed: 2 additions & 8 deletions

File tree

DependencyInjection/Compiler/DoctrineOrmMappingsPass.php

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,10 @@ public function process(ContainerBuilder $container)
2020

2121
if (
2222
$container->getParameter('hackzilla_ticket.model.ticket.class') === 'Hackzilla\Bundle\TicketBundle\Entity\Ticket'
23-
) {
24-
$path = realpath(__DIR__.'/../../Resources/config/doctrine/model/Ticket');
25-
$namespaces[$path] = 'Hackzilla\Bundle\TicketBundle\Entity';
26-
}
27-
28-
if (
23+
||
2924
$container->getParameter('hackzilla_ticket.model.message.class') === 'Hackzilla\Bundle\TicketBundle\Entity\TicketMessage'
3025
) {
31-
$path = realpath(__DIR__.'/../../Resources/config/doctrine/model/TicketMessage');
32-
$namespaces[$path] = 'Hackzilla\Bundle\TicketBundle\Entity';
26+
$namespaces[realpath($bundleDirectory.'/Resources/config/doctrine/model')] = 'Hackzilla\Bundle\TicketBundle\Entity';
3327
}
3428

3529
$arguments = array($namespaces, '.orm.xml');
File renamed without changes.

Resources/config/doctrine/model/TicketMessage/TicketMessage.orm.xml renamed to Resources/config/doctrine/model/TicketMessage.orm.xml

File renamed without changes.

0 commit comments

Comments
 (0)