Beispiel #1
0
 /**
  *  @Secured(resource="updateRule")     
  */
 public function actionUpdateRule($id)
 {
     if (!$id) {
         $this->handleBadArgument($id);
     }
     try {
         $dbRule = $this->ruleService->getRule((int) $id);
         if ($dbRule !== null) {
             $form = $this->getComponent('updateRuleForm');
             $form->setDefaults($dbRule->toArray());
         } else {
             $this->handleEntityNotExists($id);
         }
     } catch (Exceptions\DataErrorException $ex) {
         $this->handleDataLoad($id, "default", $ex);
     }
 }