/** * Declares an association between this object and a Medico object. * * @param Medico $v * @return Medicoespecialidad The current object (for fluent API support) * @throws PropelException */ public function setMedico(Medico $v = null) { if ($v === null) { $this->setIdmedico(NULL); } else { $this->setIdmedico($v->getIdmedico()); } $this->aMedico = $v; // Add binding for other direction of this n:n relationship. // If this object has already been added to the Medico object, it will not be re-added. if ($v !== null) { $v->addMedicoespecialidad($this); } return $this; }