Doctrine 2 - ORM

addFilterConstraint is called with wrong ClassMetadata, if Entity uses inheritance