/** * Declares an association between this object and a Socio object. * * @param Socio $v * @return Alquiler 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->addAlquiler($this); } return $this; }