Ejemplo n.º 1
0
 /**
  * Declares an association between this object and a Institucion object.
  *
  * @param      Institucion $v
  * @return     EleccionInstitucion The current object (for fluent API support)
  * @throws     PropelException
  */
 public function setInstitucion(Institucion $v = null)
 {
     if ($v === null) {
         $this->setInstitucionId(NULL);
     } else {
         $this->setInstitucionId($v->getId());
     }
     $this->aInstitucion = $v;
     // Add binding for other direction of this n:n relationship.
     // If this object has already been added to the Institucion object, it will not be re-added.
     if ($v !== null) {
         $v->addEleccionInstitucion($this);
     }
     return $this;
 }