Doctrine DQL execute passing params

Posted by Karim web Developer on Stack Overflow See other posts from Stack Overflow or by Karim web Developer
Published on 2010-04-28T09:00:10Z Indexed on 2010/04/28 9:03 UTC
Read the original article Hit count: 336

Filed under:
|

I used this DQL in Doctrine

$q->update('product')
->set('quantity','?')
->where('id=?');
$q->execute(array(20,5));

I check the server for the query and this the generated sql

    UPDATE product SET quantity = '20', updated_at = '5' 
WHERE (id = '2010-04-26 14:34); 

So I need to know why the arguments aren't in the correct places?

© Stack Overflow or respective owner

Related posts about php

Related posts about doctrine-query