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

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

Create a new record for the object in database
public create ( ) : boolean
Результат boolean
    public function create()
    {
        $this->db->insert("objects", ["o_key" => $this->model->getKey(), "o_path" => $this->model->getRealPath()]);
        $this->model->setId($this->db->lastInsertId());
        if (!$this->model->getKey() && !is_numeric($this->model->getKey())) {
            $this->model->setKey($this->db->lastInsertId());
        }
    }