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