[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: |
|
||||||||||||||||
| 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. |