Uploaded image for project: 'Doctrine 2 - ORM'
  1. Doctrine 2 - ORM
  2. DDC-1957

DB -> Entity: Reverse engeniering with two relations between two tables


    • 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


      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:

      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 ?


        There are no comments yet on this issue.


          • Assignee:
            beberlei Benjamin Eberlei
            skydiablo sky diablo
          • Votes:
            0 Vote for this issue
            1 Start watching this issue


            • Created: