fixed computation of 'targetEntity' property for ManyToMany relations