/**
  * 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->aGroup) {
         $this->aGroup->removeGroupEvePerson($this);
     }
     if (null !== $this->aGroupPersonType) {
         $this->aGroupPersonType->removeGroupEvePerson($this);
     }
     $this->id = null;
     $this->groupid = null;
     $this->grouppersontypeid = null;
     $this->name = null;
     $this->alreadyInSave = false;
     $this->clearAllReferences();
     $this->resetModified();
     $this->setNew(true);
     $this->setDeleted(false);
 }
 /**
  * Filter the query by a related \ECP\GroupPersonType object
  *
  * @param \ECP\GroupPersonType|ObjectCollection $groupPersonType 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 ChildGroupPersonQuery The current query, for fluid interface
  */
 public function filterByGroupPersonType($groupPersonType, $comparison = null)
 {
     if ($groupPersonType instanceof \ECP\GroupPersonType) {
         return $this->addUsingAlias(GroupPersonTableMap::COL_GROUPPERSONTYPEID, $groupPersonType->getId(), $comparison);
     } elseif ($groupPersonType instanceof ObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(GroupPersonTableMap::COL_GROUPPERSONTYPEID, $groupPersonType->toKeyValue('PrimaryKey', 'Id'), $comparison);
     } else {
         throw new PropelException('filterByGroupPersonType() only accepts arguments of type \\ECP\\GroupPersonType or Collection');
     }
 }
 /**
  * Exclude object from result
  *
  * @param   ChildGroupPersonType $groupPersonType Object to remove from the list of results
  *
  * @return $this|ChildGroupPersonTypeQuery The current query, for fluid interface
  */
 public function prune($groupPersonType = null)
 {
     if ($groupPersonType) {
         $this->addUsingAlias(GroupPersonTypeTableMap::COL_ID, $groupPersonType->getId(), Criteria::NOT_EQUAL);
     }
     return $this;
 }