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