/**
  * Filter the query by a related \EVE\InvCategories object
  *
  * @param \EVE\InvCategories|ObjectCollection $invCategories The related object(s) to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @throws \Propel\Runtime\Exception\PropelException
  *
  * @return ChildInvGroupsQuery The current query, for fluid interface
  */
 public function filterByInvCategories($invCategories, $comparison = null)
 {
     if ($invCategories instanceof \EVE\InvCategories) {
         return $this->addUsingAlias(InvGroupsTableMap::COL_CATEGORYID, $invCategories->getCategoryid(), $comparison);
     } elseif ($invCategories instanceof ObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(InvGroupsTableMap::COL_CATEGORYID, $invCategories->toKeyValue('PrimaryKey', 'Categoryid'), $comparison);
     } else {
         throw new PropelException('filterByInvCategories() only accepts arguments of type \\EVE\\InvCategories or Collection');
     }
 }
 /**
  * Exclude object from result
  *
  * @param   ChildInvCategories $invCategories Object to remove from the list of results
  *
  * @return $this|ChildInvCategoriesQuery The current query, for fluid interface
  */
 public function prune($invCategories = null)
 {
     if ($invCategories) {
         $this->addUsingAlias(InvCategoriesTableMap::COL_CATEGORYID, $invCategories->getCategoryid(), Criteria::NOT_EQUAL);
     }
     return $this;
 }
 /**
  * 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;
 }