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());
}
}