-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Assign event manager to entity managers (inc fix) #6
Comments
Btw example application.ini config is the same as DBAL: e.g.
|
I have try to use the example application.ini config you gave but it seems to be not working. |
Did you apply the patch in my first comment? What is the exception you are seeing when a real event subscriber class is defined? |
I applied the patch you mentionned in your first comment. I'll googled it a bit more. |
I did what Christophe COEVOET sais in this post (http://www.mentby.com/Group/symfony-users/doctrine-extensions-in-symfony2-beta1.html) : And it seems to be working now. |
I suspect I know where the issue could be, we are having to use an older version of Gedmo as we are still on Doctrine 2.0 and for a while now the Gedmo trunk is being developed against 2.1. There are some significant changes by the looks, for example my TreeListener.php has 80 lines of code and the current one has 227 lines :) I'm not entirely sure what revision of Gedmo we are on but if you are still on Doctrine 2.0 I'm happy to package up the revision we have so you can try to confirm if that's the issue or not. EDIT: I didn't see your comment above, great that you have it working now. |
Hi,
We needed to assign an event manager to an entity manager and found we needed to extend your library.
There is one extra hurdle in that the event manager object used by the entity manager and dbal connection have to be the same thing, otherwise a mismatch exception is thrown.
I have never used github to submit changes before so I thought I would create an issue with the change I made. Sorry if this not the best way.
Any questions about my changes or suggestions very welcome:
Thanks for your hard work we find it very useful.
Cheers
Alex
The text was updated successfully, but these errors were encountered: