[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 Sat May 25 10:23:58 UTC 2013 using JIRA 5.2.7#850-sha1:b2af0c8dc8537b36121c6a579fabbdf79fc919e5.