public function create() { $this->db->insert("schedule_tasks", []); $this->model->setId($this->db->lastInsertId()); $this->save(); }