update query in symphony (Method 2)

For example to execute query like

UPDATE tableName SET column1 = 'abc',column2 = 'xyz' WHERE column ='1';

In symfony you can do it this way

$c = new Criteria();


One thought on “update query in symphony (Method 2)”

  1. How this criteria works with more than one ‘where’ conditions like this?
    WHERE column1 =’1′ and column2 =’1′

Leave your comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.