KnpLabs / KnpRadBundle

Rapid Application Development for Symfony2 [UNMAINTAINED]
MIT License
291 stars 49 forks source link

Register Doctrine event manager as service #178

Closed akovalyov closed 10 years ago

akovalyov commented 10 years ago

Fixes #163 and makes #177 possible

akovalyov commented 10 years ago

@docteurklein I am not sure if it is the best fix but at least we located the issue and it is fixable

docteurklein commented 10 years ago

@akovalyov thanks! but I think there might be a problem here, as we should use the same event manager than doctrine-bundle uses.

Here we create another instance of the event manager instead of the preconfigured one. I don't know if it has consequences or not.