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