Skip to content

Commit 798890c

Browse files
committed
Releasing 1.0.2
2 parents bfb6d17 + d0620ac commit 798890c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/TgDatabase/DAO.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,7 @@ public function delete($object) {
200200
*/
201201
public function deleteBy($criteria = array()) {
202202
$whereClause = $this->createWhereClause($criteria);
203-
$query = 'DELETE FROM '.$this->database->quoteName($this->tableName).' '.$whereClause;
204-
return $this->database->query($query);
203+
return $this->database->delete($this->tableName, substr($whereClause, 6));
205204
}
206205

207206
/**

0 commit comments

Comments
 (0)