You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 2, 2025. It is now read-only.
I have configured my symfony app to have a custom entity manager for the wordpress side of things and the symfony side of things, as suggested here: #96.
This works well, but now I have a table of objects belonging to a user, and I want to use the user id as a foreign key. Since the Ekino\WordpressBundle\Entity\User entity is managed by a different entity manager, I get the following error when I run php app/console doctrine:schema:update --force --em=symfony
Doctrine\Common\Persistence\Mapping\MappingException]
The class 'Ekino\WordpressBundle\Entity\User' was not found in the chain configured namespaces AppBundle\Entity
Am I going about this incorrectly? Any advice on the best way to use the user id as a foreign key?
Update: I can get around this issue a bit by including just the Users entity in my symfony entity manager by moving User.orm.xml and UserMeta.orm.xml to endor/ekino/wordpress-bundle/Resources/config/doctrine/user/ and updating my config.yml to be this:
Hi --
I have configured my symfony app to have a custom entity manager for the wordpress side of things and the symfony side of things, as suggested here: #96.
This works well, but now I have a table of objects belonging to a user, and I want to use the user id as a foreign key. Since the Ekino\WordpressBundle\Entity\User entity is managed by a different entity manager, I get the following error when I run php app/console doctrine:schema:update --force --em=symfony
Am I going about this incorrectly? Any advice on the best way to use the user id as a foreign key?
relevant code in my config.yml:
Relevant code in my doctrine-mapping xml:
Any guidance would be appreciated. Thanks!
The text was updated successfully, but these errors were encountered: