Hi.

Did you manage to solve that situation?

понедельник, 30 декабря 2013 г., 17:39:41 UTC+2 пользователь Matías Castro 
написал:
>
> Hi guys, I'm trying to implement this example 
> <http://docs.doctrine-project.org/en/latest/cookbook/resolve-target-entity-listener.html>
>  
> taken from doctrine2 docs (using symfony2 explained here 
> <http://symfony.com/doc/current/cookbook/doctrine/resolve_target_entity.html>,
>  
> both are the same).
>
> I'm doing everything exactly as described but I get a:
>
> [Doctrine\DBAL\Schema\SchemaException] 
>>  The table with name 'example.customer' already exists.
>
>
> In my implementation, the class Acme\CustomerModule\Entity\Customer is a 
> mapped entity, same as Acme\AppModule\Entity\Customer (which is the source 
> of the problem I think). There is no example for this class on the docs, so 
> I'm assuming that this is correct, since the docs explicitly say: 
>
> With the ResolveTargetEntityListener, we are able to decouple our bundles, 
>> keeping them usable by themselves, but still being able to define 
>> relationships between different objects
>
>
> So, the only way for the CustomerModule to work by it's own, is 
> that Acme\CustomerModule\Entity\Customer is a mapped entity.
>
> Has anyone implemented something like this so I can take a look? Thanks a 
> lot! 
>

-- 
You received this message because you are subscribed to the Google Groups 
"doctrine-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to