Doctrine Update by DQL + field with parenthesis: "(" and ")"
- by Paulo
Hello! I have a doctrine update query to save my data:
$customer = Doctrine_Query::create()
-update('Customer')
-set('fax',"'". $this-getRequest()-getParam('fax')."'")
-where('id ='.$this-getRequest()-getParam('id'))
-execute();
The problem is that the field fax has parenthesis and doctrine returns an error in the query…