We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b5428a commit d0620acCopy full SHA for d0620ac
src/TgDatabase/DAO.php
@@ -200,8 +200,7 @@ public function delete($object) {
200
*/
201
public function deleteBy($criteria = array()) {
202
$whereClause = $this->createWhereClause($criteria);
203
- $query = 'DELETE FROM '.$this->database->quoteName($this->tableName).' '.$whereClause;
204
- return $this->database->query($query);
+ return $this->database->delete($this->tableName, substr($whereClause, 6));
205
}
206
207
/**
0 commit comments