Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 2.2
-
Fix Version/s: None
-
Component/s: Mapping Drivers
-
Security Level: All
-
Labels:
-
Environment:windows 7, php 5.3, symfony 2.1
Description
i use the cli from the symfony 2.1 project to reverse from DB to Entity:
php app/console doctrine:mapping:convert xml ./src/Acme/StoreBundle/Resources/config/doctrine/metadata/orm --from-database --force
and i get tis error:
[Doctrine\ORM\Mapping\MappingException]
Property "radUser" in "RadAttribute" was already declared, but it must be declared only once
so i have a table "radUser" with two m:n relations to the same table "radAttributes":
Table radUser:
check => radAttributes
reply => radAttributes
so doctrine reverse mapping try to generate the radAttribute entity with two mapping to radUser with the same field name "radUser", what can i do to prevent this issue ?