[DDC-1180] Indexed Associations: foreign key (association) cannot be used as indexBy field Created: 29/May/11 Updated: 02/Mar/13
|Project:||Doctrine 2 - ORM|
|Reporter:||Petr Sobotka||Assignee:||Benjamin Eberlei|
Using Doctrine ORM 2.1.0BETA1
I am trying to index a collection by its entity's column which is also a foreign key (association). It seems to me that it is not possible at the moment.
Only possible workaround I found is to define another (plain) entity's property mapped to the same table column and index by it:
Wouldn't it be easy to support it?
|Comment by Benjamin Eberlei [ 05/Jun/11 ]|
It is not so easy to implement from the first gimplse and it is not a bug but an improvement/feature request.
|Comment by Benjamin Morel [ 02/Mar/13 ]|
Related PR: https://github.com/doctrine/doctrine2/pull/204