/**
  * 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->aInvTypes) {
         $this->aInvTypes->removeInvMetaTypes($this);
     }
     if (null !== $this->aInvMetaGroups) {
         $this->aInvMetaGroups->removeInvMetaTypes($this);
     }
     $this->typeid = null;
     $this->parenttypeid = null;
     $this->metagroupid = null;
     $this->alreadyInSave = false;
     $this->clearAllReferences();
     $this->resetModified();
     $this->setNew(true);
     $this->setDeleted(false);
 }
 /**
  * Exclude object from result
  *
  * @param   ChildInvMetaGroups $invMetaGroups Object to remove from the list of results
  *
  * @return $this|ChildInvMetaGroupsQuery The current query, for fluid interface
  */
 public function prune($invMetaGroups = null)
 {
     if ($invMetaGroups) {
         $this->addUsingAlias(InvMetaGroupsTableMap::COL_METAGROUPID, $invMetaGroups->getMetagroupid(), Criteria::NOT_EQUAL);
     }
     return $this;
 }
 /**
  * Filter the query by a related \EVE\InvMetaGroups object
  *
  * @param \EVE\InvMetaGroups|ObjectCollection $invMetaGroups 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 ChildInvMetaTypesQuery The current query, for fluid interface
  */
 public function filterByInvMetaGroups($invMetaGroups, $comparison = null)
 {
     if ($invMetaGroups instanceof \EVE\InvMetaGroups) {
         return $this->addUsingAlias(InvMetaTypesTableMap::COL_METAGROUPID, $invMetaGroups->getMetagroupid(), $comparison);
     } elseif ($invMetaGroups instanceof ObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(InvMetaTypesTableMap::COL_METAGROUPID, $invMetaGroups->toKeyValue('PrimaryKey', 'Metagroupid'), $comparison);
     } else {
         throw new PropelException('filterByInvMetaGroups() only accepts arguments of type \\EVE\\InvMetaGroups or Collection');
     }
 }