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