Ejemplo n.º 1
0
 /**
  * @param mixed $position
  */
 public function getPerformanceJudge($position)
 {
     $judges = $this->getJudges();
     foreach ($judges as $judge) {
         if ($judge->getPosition() == 'P' . $position) {
             return $judge;
         }
     }
     $judge = new Judge();
     $judge->setPosition('P' . $position);
     $judge->setStartgroup($this);
     $judge->save();
     return $judge;
 }
Ejemplo n.º 2
0
 /**
  * @param ChildJudge $judge The ChildJudge object to add.
  */
 protected function doAddJudge(ChildJudge $judge)
 {
     $this->collJudges[] = $judge;
     $judge->setStartgroup($this);
 }