commit
540af2fd2a
@ -119,8 +119,7 @@ the targetEntity resolution will occur reliably:
|
|||||||
$evm = new \Doctrine\Common\EventManager;
|
$evm = new \Doctrine\Common\EventManager;
|
||||||
|
|
||||||
$rtel = new \Doctrine\ORM\Tools\ResolveTargetEntityListener;
|
$rtel = new \Doctrine\ORM\Tools\ResolveTargetEntityListener;
|
||||||
$rtel->addResolveTargetEntity('Acme\\InvoiceModule\\Model\\InvoiceSubjectInterface',
|
$rtel->addResolveTargetEntity('Acme\\InvoiceModule\\Model\\InvoiceSubjectInterface', 'Acme\\CustomerModule\\Entity\\Customer', array());
|
||||||
'Acme\\CustomerModule\\Entity\\Customer', array());
|
|
||||||
|
|
||||||
// Add the ResolveTargetEntityListener
|
// Add the ResolveTargetEntityListener
|
||||||
$evm->addEventSubscriber($rtel);
|
$evm->addEventSubscriber($rtel);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user