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