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