1
0
mirror of synced 2025-01-17 22:11:41 +03:00

Fixed error in syntax for deleting.

This commit is contained in:
Jonathan.Wage 2007-04-12 16:33:08 +00:00
parent 635bc1fa66
commit 7057cc7362

View File

@ -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
?>