Doctrine 2 - ORM

Allowing objects as filters