A bug of wrong ManyToOne.targetEntity() value interpreting was fixed.

It was changed according to the documentation.