[solved] Doctrine2 Annotation indexBy missing from @ManyToMany relationships

0 votes
asked Jan 24, 2015 in Solved by ise (730 points)
recategorized Apr 23, 2015 by ludek.vodicka

RE: http://support.skipper18.com/571/solved-doctrine2-annotation-indexby-attribute-missing

This was added for @OneToMany relationships, however as of Skipper 3.0.1.1129, this is missing for @ManyToMany relationships?

commented Mar 19, 2015 by ludek.vodicka Skipper developer (140,450 points)

This issue should be fixed by one of last releases. Can you please try it and let me know?

commented Mar 26, 2015 by ise (730 points)

I'm still unable to see it in version 3.1.2.1193 (linux portable). Could you tell me where to look more specifically, I could just be missing it?

commented Mar 27, 2015 by ludek.vodicka Skipper developer (140,450 points)

Ok, let me check it.

1 Answer

0 votes
answered Apr 23, 2015 by ludek.vodicka Skipper developer (140,450 points)

You were right, @indexBy attribute wasn't supported for ManyToMany association.

We fixed that in latest beta: http://support.skipper18.com/402/downloads-skipper-beta

Can you please try it and let me know?

commented Oct 10, 2015 by ise (730 points)

Yes thankyou :)

commented Oct 10, 2015 by ise (730 points)

There is still a seperate issue where entities are not inheriting fields from parent classes correctly and so I'm unable to type a custom fieldname into the index by field.

commented Oct 10, 2015 by ludek.vodicka Skipper developer (140,450 points)

You're right. This is a current limitation of Skipper. Currently it's not possible to use derived fields in indexes or other settings.

To be able to offer this feature it's necessary to do some more complex changes in application core. We have it on our todo list but can't promise any specific date.

...