Example #1
0
 /**
  * Declares an association between this object and a Disciplina object.
  *
  * @param      Disciplina $v
  * @return     Gradeunit The current object (for fluent API support)
  * @throws     PropelException
  */
 public function setDisciplina(Disciplina $v = null)
 {
     if ($v === null) {
         $this->setDisciplinaId(NULL);
     } else {
         $this->setDisciplinaId($v->getId());
     }
     $this->aDisciplina = $v;
     // Add binding for other direction of this n:n relationship.
     // If this object has already been added to the Disciplina object, it will not be re-added.
     if ($v !== null) {
         $v->addGradeunit($this);
     }
     return $this;
 }