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