/**
  * Clears the current object, sets all attributes to their default values and removes
  * outgoing references as well as back-references (from other objects to this one. Results probably in a database
  * change of those foreign objects when you call `save` there).
  */
 public function clear()
 {
     if (null !== $this->aInvCategories) {
         $this->aInvCategories->removeInvGroups($this);
     }
     $this->groupid = null;
     $this->categoryid = null;
     $this->groupname = null;
     $this->published = null;
     $this->alreadyInSave = false;
     $this->clearAllReferences();
     $this->resetModified();
     $this->setNew(true);
     $this->setDeleted(false);
 }
 /**
  * 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;
 }
 /**
  * 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');
     }
 }