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