Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-522

Join columns can not be named the same as the association fields.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-BETA1
    • Fix Version/s: 2.0-BETA4
    • Component/s: None
    • Security Level: All
    • Labels:
      None

      Description

      Join columns can currently not be named the same as the association fields in a class. This apparently causes Doctrine to insert the identifier of the associated object instead of the actual object (on hydration of the fetch-joined association at least).

      Example:

          /**
           * @OneToOne(...)
           * @JoinColumn(name="item", referencedColumnName="id")
           */
          private $item;
      

        Issue Links

          Activity

          Hide
          Roman S. Borschel added a comment -

          Fixed.

          Show
          Roman S. Borschel added a comment - Fixed.

            People

            • Assignee:
              Roman S. Borschel
              Reporter:
              Roman S. Borschel
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: