コード例 #1
0
ファイル: Professeur.php プロジェクト: bonna023/agenda
 /**
  * Add prof_matieres
  *
  * @param \EDTBundle\Entity\ProfMatiere $profMatieres
  * @return Professeur
  */
 public function addProfMatiere(\EDTBundle\Entity\ProfMatiere $profMatieres)
 {
     $this->prof_matieres[] = $profMatieres;
     $profMatieres->setProfesseur($this);
     return $this;
 }
コード例 #2
0
ファイル: Matiere.php プロジェクト: bonna023/agenda
 /**
  * Add matiere_profs
  *
  * @param \EDTBundle\Entity\ProfMatiere $matiereProfs
  * @return Matiere
  */
 public function addMatiereProf(\EDTBundle\Entity\ProfMatiere $matiereProfs)
 {
     $this->matiere_profs[] = $matiereProfs;
     $matiereProfs->setMatiere($this);
     /*C'est un relation bidirectionnelle, il faut donc lier les deux entités de manière
       à ce qu'elle garde une cohérence entre elles.
       */
     return $this;
 }