@Index can be used with @ReferenceOne to use the referenced key as index.
ClassMetadata::mapManyToMany - Change a redundant 'if' to a simple assignment.
ClassMetadata: Moved the duplicate indexes check and update code to a separate method.
Merge remote-tracking branch 'origin/master' into GH-71
[GH-71] Cleanup patch
Add Test for GH-71