Example #1
0
 /**
  * @param InstructorGroupInterface $instructorGroup
  */
 public function addInstructorGroup(InstructorGroupInterface $instructorGroup)
 {
     $this->instructorGroups->add($instructorGroup);
 }
Example #2
0
 /**
  * @param InstructorGroupInterface $instructorGroup
  */
 public function addInstructorGroup(InstructorGroupInterface $instructorGroup)
 {
     if (!$this->instructorGroups->contains($instructorGroup)) {
         $this->instructorGroups->add($instructorGroup);
         $instructorGroup->addUser($this);
     }
 }