public function create() { $ts = time(); $this->model->setModificationDate($ts); $this->model->setCreationDate($ts); $this->db->insert(self::TABLE_NAME_COLLECTIONS, []); $this->model->setId($this->db->lastInsertId()); return $this->save(); }