Beispiel #1
0
 /**
  * @return ModelAndView
  **/
 public function run(Prototyped $subject, Form $form, HttpRequest $request)
 {
     if (!$form->getErrors()) {
         ClassUtils::copyProperties($form->getValue('id'), $subject);
         FormUtils::form2object($form, $subject, false);
         return parent::run($subject, $form, $request);
     }
     return new ModelAndView();
 }
Beispiel #2
0
 /**
  * @return ModelAndView
  **/
 public function run(Prototyped $subject, Form $form, HttpRequest $request)
 {
     $form->markGood('id');
     if (!$form->getErrors()) {
         FormUtils::form2object($form, $subject);
         return parent::run($subject, $form, $request);
     }
     return new ModelAndView();
 }