Error like:  When query is build like:  Fixed in my case:  but i think it should do this automatically internally. Or there should be method to bind explicitly data like in regular doctrine project: http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/query-builder.html#binding-parameters-to-your-query