Replies: 1 comment 1 reply
-
there is nothing supported in doctrine/orm that allows such precise filtering |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
If you have entities scattered across your
src
directory, and each belongs to it's own database, thus thus the need for multiple entity managers, how do you associate them to a particular entity manager? The only way I've seen is either via bundles or directories. However, directory doesn't work if you don't have a single directory for all of your entities, which is the case when using component not function based directory structures.For example, the bundle expects
src/Entities
and for multiple EMs,src/EM1/Entities
andsrc/EM2/Entities
. However, we havesrc/Component1/Entity1.php
,src/Component2/Entity2.php
.I was hoping for either a property on the
Entity
attribute calledentityManager
orem
, or a separate attribute if necessaryEntityManager
, but I don't think this exists.Thanks!
Beta Was this translation helpful? Give feedback.
All reactions