I have two document manager dm1 and dm2, and a bundle called AcmeBundle, in the bundle, i have quite a few classes, some start with "FirstClass" and some start with "SecondClass" and some other classes. For example i have
FirstClass1.php,
FirstClass2.php,
SecondClass1.php,
SecondClass2.php
Random.php
What i need is the classes start with "FirstClass" and "SecondClass" managed by both dm1 and dm2, and other classes managed only by dm1
I tried using prifix
dm1:
connection: dm1
...
auto_mapping: false
mappings:
MyAcmeBundle: ~
dm2:
connection: dm2
...
auto_mapping: false
mappings:
MyAcmeBundle:
prefix: My\AcmeBundle\Document\FirstClass
but it only works for one prefix, if I add another one it won't work. Any one know how to do this?