Doctrine 2 - ORM

DQL does not accept a parameter containing Entities