public function getName()
 {
     if (empty($this->name) && isset($this->course)) {
         return $this->course->getName();
     }
     return $this->name;
 }
Пример #2
0
 /**
  * Remove courses
  *
  * @param \ClassCentral\SiteBundle\Entity\Course $courses
  */
 public function removeCourse(\ClassCentral\SiteBundle\Entity\Course $courses)
 {
     $this->courses->removeElement($courses);
 }
Пример #3
0
 public function getInitiative()
 {
     return $this->course->getInitiative();
 }