Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-1957

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

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major 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 ?

        Activity

        There are no comments yet on this issue.

          People

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

            Dates

            • Created:
              Updated: