mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-1957: DB -> Entity: Reverse engeniering with two relations between two tables #2466
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @doctrinebot on GitHub (Jul 29, 2012).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user skydiablo:
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 ?