1
0
mirror of synced 2025-01-19 15:01:40 +03:00

Correction Events.rs - Entity Listeners Resolver

Configuring the Entity Listener Resolver can only be done before Entity Manager is initialized as described here: https://github.com/doctrine/doctrine2/pull/1193
This commit is contained in:
Nick DeCoursin 2014-11-26 19:29:58 -05:00
parent bf5003f25e
commit 82c5547931

View File

@ -942,8 +942,9 @@ Implementing your own resolver :
} }
} }
// configure the listener resolver. // Configure the listener resolver only before instantiating the EntityManager
$em->getConfiguration()->setEntityListenerResolver($container->get('my_resolver')); $configurations->setEntityListenerResolver(new MyEntityListenerResolver);
EntityManager::create(.., $configurations, ..);
Load ClassMetadata Event Load ClassMetadata Event
------------------------ ------------------------