Ejemplo n.º 1
0
 public function save()
 {
     $divisionId = $this->getValue('divisionId');
     if (!empty($divisionId)) {
         $division = $this->getDivisionService()->getDivisionById($divisionId);
     } else {
         $division = new Division();
     }
     $division->setDivisionName($this->getValue('division_name'));
     $division->setDivisionCode($this->getValue('division_code'));
     $division->setCouCode($this->getValue('country'));
     $division->save();
 }