timestamps = false; } public function toDbo() { $dbo = new LuticateSettingsDbo(); $dbo->setName($this->name); $dbo->setType($this->type); $dbo->setValue($this->value); $dbo->setIsBlocked($this->is_blocked); $dbo->setIsAdmin($this->is_admin); return $dbo; } /** * @param $dbo LuticateSettingsDbo * @param $model LuModel|null * @return LuticateSettings */ public function fromDbo($dbo, $model = null) { if (is_null($model)) $model = new LuticateSettings(); $model->name = $dbo->getName(); $model->type = $dbo->getType(); $model->value = $dbo->getValue(); $model->is_blocked = $dbo->getIsBlocked(); $model->is_admin = $dbo->getIsAdmin(); return $model; } }