-
Notifications
You must be signed in to change notification settings - Fork 31
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
add support of multiple entity managers #80
Comments
Sorry, I dont get what you want. Could you be more descriptive?
|
I'm working on a multi customer application( multi database connection ). Each client got his own database, so I need to use a custom entity manager. Your "identity_class" use the default entity manager. This could be a good thing to use custom entity manager(in my case :)). cf: http://symfony.com/doc/master/cookbook/doctrine/multiple_entity_managers.html |
Good question. I dont know a good way to solve it, honestly I dont even have time to investigate it deeper. So you do a PR, that's would be really good. Solution for know to create your own provider and use it. or overwrite this service |
closed by mistake |
ok, but at this time, i got trouble with class OpenIdIdentity. It can't inherite from Fp\OpenIdBundle\Entity\UserIdentity. Are you sure you must not put something like "@Orm\Column(name="identity", type="string")" in your classes ? Thanks. |
make sure doctrine auto mapping enabled. |
I can't enable auto mapping when several entity managers are defined |
so you have to add fp openid mappings explisitly, use this example:
|
Like this ? |
no, fpopenid uses xml for schemas, so that would be (not tested): mappings:
FpOpenIdBundle: { type: xml, dir: Resources/config/doctrine } |
Thanks it works ! :) Now i'm trying to inject the custom entity manager ... config.yml:
Configuration.php
FpOpenIdExtension.php
And here is the trouble, i don't know how inject the entity manager in fp_openid.identity_manager service:
Thanks for your help |
Is it possible to add a configuration option "entity_manager" for multitenancy ? Thanks
The text was updated successfully, but these errors were encountered: