[Solved] Doctrine2 Annotation IndexBy attribute missing

0 votes
asked Mar 8, 2013 in Solved by paperboy (450 points)
recategorized Nov 11, 2013 by Martin Freki Stradej

According to Doctrine2.3 http://docs.doctrine-project.org/en/latest/tutorials/working-with-indexed-associations.html

OneToMany and ManyToMany can set attribute indexBy={field}, in ORMD2 I can't set this attribute and i can't preserve this attribute after a export Schema action.

EDIT:
ManyToMany can't set attribute indexBy={field},
i added
in manytomany struct and it's work but with this trick i have wrong field select box

3 Answers

0 votes
answered Mar 13, 2013 by ludek.vodicka Skipper developer (140,450 points)
selected Jul 30, 2014 by Martin Freki Stradej
 
Best answer

New version 2.1.10.697 with this feature/bugfix was released.
Please download latest version here http://www.orm-designer.com/download-orm-designer

0 votes
answered Mar 11, 2013 by ludek.vodicka Skipper developer (140,450 points)

Implemented. Feature will be available in the next release.

/** 
 * @ORM\OneToMany(targetEntity="E2", indexBy="sample_entity_id", ... )
 */

enter image description here

0 votes
answered Oct 27, 2013 by paperboy (450 points)

I edited message with an discovered bug

...