AliceBundle with multiple entity managers?

h00ligan

Anyone know if AliceBundle (https://github.com/hautelook/AliceBundle) supports multiple entity managers or my em mapping is somehow screwed up. I have a bundle (BundleA) that has seven entity objects but have only configured one class, EntityA, to generate entities for but when I try loading the fixtures it fails with this error:

  [Doctrine\Common\Persistence\Mapping\MappingException]
  The class 'BundleB\Entity\ClassB' was not found in the chain configured namespaces <list of namespaces not including the 'BundleB\Entity' namespace>

BundleA and BundleB are on two different entity managers and there's no direct link between them. BundleA is within the default manager while BundleB is in one of the other entity managers. Both bundles have multiple entity classes that are working fine in a live environment.

I've been checking if the entity manager mapping is set up wrong but haven't been able to see anything strange going on there so my next thing to check was to figure out if AliceBundle doesn't support multiple EMs but I can't find any documentation saying one way or the other.

All entities are Doctrine ORM entities

user2268997

You must tell the bundle what Entity Manager to use manually by providing the --manager option.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Single or Multiple Entity managers

Resolve Target Entity with multiple entity managers

symfony doctrine migrations with multiple entity managers

How to use Symfony autowiring with multiple entity managers

Cli-Config Helper -Multiple Entity Managers

Manage transactions with multiple datasource, entity managers for same application code

Symfony2 Multiple databases configuration/connections and entity managers

Symfony2 doctrine:schema:update with multiple Entity Managers

error The attribute "name" must be set for path "doctrine.orm.entity_managers.db2.mappings" with multiple databases

How do I set up Doctrine 2 with multiple Entity Managers in one Project? (without Symfony/Zend)

Multiple window managers

Multiple Async Context Managers

JPA Multiple Transaction Managers

Multiple transaction managers NoUniqueBeanDefinitionException

Spring: Multiple Cache Managers

are there dangers in using multiple pacakage managers

Multiple DataSources with Multiple Transaction Managers in Spring

Multiple Transaction Managers in Spring Boot for different EntityManagers

Correct way to manage multiple resources with context managers

Using Multiple Base URLs and Multiple Object Managers (RestKit)

How can I open multiple task managers in Windows 7?

Flink job/data flow on multiple task managers failure and recovery

Spring - Is it possible to use multiple transaction managers in the same application?

Can Context Managers run the included block multiple times in Python?

MyBatis-Spring rollback not working with multiple transaction managers

Spring security Expose Multiple Authentication Managers without WebSecurityConfigurerAdapter

Upload a package to multiple package managers from a single repo

How Django evaluates object managers when we have multiple ones?

Should I pass doctrine Registry or specific repositories, entity managers to DI container in symfony2?