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