/** * @return Condition */ protected function createCondition() { return $this->database->createCondition(); }
/** * @param int $id * * @throws QueryBuilderException */ public function deleteRow($id) { $this->database->createQuery()->delete()->from($this->table)->where($this->database->createCondition()->equal($this->getPrimaryKey(), $id))->execute(); }