Doctrine 2 - ORM

Automatically infer type when DateTime is used as parameter in queries