Pimcore\Model\Object\ClassDefinition\CustomLayout\Dao::create PHP Метод

create() публичный Метод

Create a new record for the object in database
public create ( ) : boolean
Результат boolean
    public function create()
    {
        $this->db->insert("custom_layouts", ["name" => $this->model->getName(), "classId" => $this->model->getClassId()]);
        $this->model->setId($this->db->lastInsertId());
        $this->model->setCreationDate(time());
        $this->model->setModificationDate(time());
        $this->save();
    }