Do I need to wrap strings with '' when using Doctrine update set method?

Posted by terrani on Stack Overflow See other posts from Stack Overflow or by terrani
Published on 2010-05-28T00:26:12Z Indexed on 2010/05/28 0:31 UTC
Read the original article Hit count: 244

Filed under:
|

Hi,

I am using Doctrine Update query as follow.

$oQuery = Doctrine_Query::create() ->update("Model") ->set("field",$value);

the problem is that if $value is string, I have to ->set("field","'".$value."'");

if it normal? Why can't doctrine do it itself?

am I missing something?

© Stack Overflow or respective owner

Related posts about set

Related posts about doctrine-query