/** * Delete data * * @param array|bool $ids Array of ID for delete * * @return bool */ public function delete($ids = false) { $sql = $this->builder->delete($this, $ids); return Db::query($sql); }
/** * @expectedException \Exception * @expectedExceptionMessage Not found model id! */ public function testDeleteException() { $user = new User(); $this->object->delete($user, false); }