예제 #1
0
파일: Model.php 프로젝트: liftkit/database
 /**
  * @return Condition
  */
 protected function createCondition()
 {
     return $this->database->createCondition();
 }
예제 #2
0
파일: Table.php 프로젝트: liftkit/database
 /**
  * @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();
 }