Pimcore\Model\Object\Classificationstore\CollectionConfig\Dao::create PHP Method

create() public method

Create a new record for the object in database
public create ( ) : boolean
return boolean
    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();
    }