/** * @return bool */ protected function fillObject() { $this->setValuesByPost(); if (!$this->checkInput()) { return false; } $this->type->setTitle($this->getInput('title')); $this->type->setDescription($this->getInput('description')); $this->type->setLanguages($this->getInput('languages')); $this->type->setRoles($this->getInput('roles')); $this->type->setAvailableObjects($this->getInput('available_objects')); return true; }