Fixed targetEntity masking for doctrine 2.4