Doctrine2 entity listener as service in the Symfony2 container | Development on Various Platforms | Scoop.it

Few weeks ago, I have migrated an application from Doctrine 2.3 to 2.4 & discover the entity listener feature. This one is pretty interesting as it allows us to map business logic to a specific entity whereas before, we can only attach this logic to the global event lifecycle. To explain you the gain it provides, I will try to explain it from the beginning.


Via Arno_Raulet