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