timestamps = false; } public function toDbo() { $dbo = new ImagesDbo(); $dbo->setId($this->id); $dbo->setUserId($this->user_id); $dbo->setPath($this->path); $dbo->setDate($this->date); $dbo->setName($this->name); return $dbo; } /** * @param $dbo ImagesDbo * @param $model LuModel|null * @return Images */ public function fromDbo($dbo, $model = null) { if (is_null($model)) $model = new Images(); $model->id = $dbo->getId(); $model->user_id = $dbo->getUserId(); $model->path = $dbo->getPath(); $model->date = $dbo->getDate(); $model->name = $dbo->getName(); return $model; } }