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();
|
$q = new Doctrine_Query();
|
||||||
|
|
||||||
$rows = $q->update('Account')
|
$rows = $q->delete('Account')
|
||||||
->where('id > ?')
|
->from('Account a')
|
||||||
->execute(array(3));
|
->where('a.id > ?', 3)
|
||||||
|
->execute();
|
||||||
|
|
||||||
print $rows; // the number of affected rows
|
print $rows; // the number of affected rows
|
||||||
?>
|
?>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user