Commit 7057cc73 authored by Jonathan.Wage's avatar Jonathan.Wage

Fixed error in syntax for deleting.

parent 635bc1fa
......@@ -7,9 +7,10 @@ $rows = $this->conn->query($q, array(3));
$q = new Doctrine_Query();
$rows = $q->update('Account')
->where('id > ?')
->execute(array(3));
$rows = $q->delete('Account')
->from('Account a')
->where('a.id > ?', 3)
->execute();
print $rows; // the number of affected rows
?>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment