Fixed error in syntax for deleting.
This commit is contained in:
parent
635bc1fa66
commit
7057cc7362
@ -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
|
||||
?>
|
||||
|
Loading…
x
Reference in New Issue
Block a user