Doctrine 2 - ORM

Query with detached Entity as parameter fails to execute