[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:
is required for DDC-419 Problem when I make a INNER JOIN betw... Closed
is referenced by DDC-774 Getting the primary key of a referenc... Resolved


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).


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

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


Generated at Wed Oct 07 11:48:07 EDT 2015 using JIRA 6.4.10#64025-sha1:5b8b74079161cd76a20ab66dda52747ee6701bd6.