Esempio n. 1
0
 /**
  * @param \Nette\Application\UI\Form $form
  */
 public function processForm(Form $form)
 {
     $nextPosition = $this->performanceFacade->getNextPositionByEvent($this->event);
     $values = $form->values;
     $performance = $this->performance ? $this->performance : new Entity\Performance($this->event);
     $performance->songAuthor = $values->songAuthor;
     $performance->songName = $values->songName;
     $performance->note = $values->note;
     $performance->setPosition($nextPosition);
     $this->performanceFacade->save($performance);
 }