Basically, I have a code branch that connects to three different entity managers (and then three different MySQL databases). Unfortunately, two databases have tables that are called the same, so I can’t have all the entities in one directory, and an identifier for a structure to avoid this.
So my question is this: how would I configure it so that I can have a single set of objects with subdirectories under Entity\andResources\config\doctrine\
eg.
Acme\EntityBundle\Entity\DB1\Test.php
Acme\EntityBundle\Entity\DB1\Acme.php
Acme\EntityBundle\Entity\DB2\Test.php
Acme\EntityBundle\Entity\DB2\Foo.php
Acme\EntityBundle\Entity\DB3\Bar.php
same idea for Resources\config\doctrine\
The configurations are very vague on what to do here ...
source
share