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