DDC-1957: DB -> Entity: Reverse engeniering with two relations between two tables #2466

Closed
opened 2026-01-22 13:54:15 +01:00 by admin · 0 comments
Owner

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 ?

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 ?
admin added the Bug label 2026-01-22 13:54:15 +01:00
admin closed this issue 2026-01-22 13:54:16 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#2466