commit
540af2fd2a
1 changed files with 1 additions and 2 deletions
|
@ -119,8 +119,7 @@ the targetEntity resolution will occur reliably:
|
|||
$evm = new \Doctrine\Common\EventManager;
|
||||
|
||||
$rtel = new \Doctrine\ORM\Tools\ResolveTargetEntityListener;
|
||||
$rtel->addResolveTargetEntity('Acme\\InvoiceModule\\Model\\InvoiceSubjectInterface',
|
||||
'Acme\\CustomerModule\\Entity\\Customer', array());
|
||||
$rtel->addResolveTargetEntity('Acme\\InvoiceModule\\Model\\InvoiceSubjectInterface', 'Acme\\CustomerModule\\Entity\\Customer', array());
|
||||
|
||||
// Add the ResolveTargetEntityListener
|
||||
$evm->addEventSubscriber($rtel);
|
||||
|
|
Loading…
Add table
Reference in a new issue