[DDC-522] Join columns can not be named the same as the association fields. Created: 15/Apr/10  Updated: 15/Sep/10  Resolved: 08/Aug/10

Status: Closed
Project: Doctrine 2 - ORM
Component/s: None
Affects Version/s: 2.0-BETA1
Fix Version/s: 2.0-BETA4
Security Level: All

Type: Bug Priority: Major
Reporter: Roman S. Borschel Assignee: Roman S. Borschel
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Dependency
is required for DDC-419 Problem when I make a INNER JOIN betw... Closed
Reference
is referenced by DDC-774 Getting the primary key of a referenc... Resolved

 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;


 Comments   
Comment by Roman S. Borschel [ 08/Aug/10 ]

Fixed.

Generated at Tue Sep 02 12:15:47 UTC 2014 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.