/** * Declares an association between this object and a ChildSubcategories object. * * @param ChildSubcategories $v * @return $this|\Items The current object (for fluent API support) * @throws PropelException */ public function setSubcategories(ChildSubcategories $v = null) { if ($v === null) { $this->setSubcategoryId(NULL); } else { $this->setSubcategoryId($v->getSubcategoryId()); } $this->aSubcategories = $v; // Add binding for other direction of this n:n relationship. // If this object has already been added to the ChildSubcategories object, it will not be re-added. if ($v !== null) { $v->addItems($this); } return $this; }