/**
  * Filter the query by a related \ECP\GroupEvePerson object
  *
  * @param \ECP\GroupEvePerson|ObjectCollection $groupEvePerson 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 filterByGroupEvePerson($groupEvePerson, $comparison = null)
 {
     if ($groupEvePerson instanceof \ECP\GroupEvePerson) {
         return $this->addUsingAlias(GroupPersonTableMap::COL_GROUPEVEPERSONID, $groupEvePerson->getId(), $comparison);
     } elseif ($groupEvePerson instanceof ObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(GroupPersonTableMap::COL_GROUPEVEPERSONID, $groupEvePerson->toKeyValue('PrimaryKey', 'Id'), $comparison);
     } else {
         throw new PropelException('filterByGroupEvePerson() only accepts arguments of type \\ECP\\GroupEvePerson or Collection');
     }
 }
 /**
  * @param ChildGroupEvePerson $groupEvePerson The ChildGroupEvePerson object to add.
  */
 protected function doAddGroupEvePerson(ChildGroupEvePerson $groupEvePerson)
 {
     $this->collGroupEvepeople[] = $groupEvePerson;
     $groupEvePerson->setGroup($this);
 }
 /**
  * Exclude object from result
  *
  * @param   ChildGroupEvePerson $groupEvePerson Object to remove from the list of results
  *
  * @return $this|ChildGroupEvePersonQuery The current query, for fluid interface
  */
 public function prune($groupEvePerson = null)
 {
     if ($groupEvePerson) {
         $this->addUsingAlias(GroupEvePersonTableMap::COL_ID, $groupEvePerson->getId(), Criteria::NOT_EQUAL);
     }
     return $this;
 }
 /**
  * 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->removeGroupPerson($this);
     }
     if (null !== $this->aGroupPersonType) {
         $this->aGroupPersonType->removeGroupPerson($this);
     }
     if (null !== $this->aGroupEvePerson) {
         $this->aGroupEvePerson->removeGroupPerson($this);
     }
     if (null !== $this->aUser) {
         $this->aUser->removeGroupPerson($this);
     }
     $this->id = null;
     $this->groupid = null;
     $this->grouppersontypeid = null;
     $this->groupevepersonid = null;
     $this->userid = null;
     $this->alreadyInSave = false;
     $this->clearAllReferences();
     $this->resetModified();
     $this->setNew(true);
     $this->setDeleted(false);
 }
 /**
  * Filter the query by a related \ECP\GroupEvePerson object
  *
  * @param \ECP\GroupEvePerson|ObjectCollection $groupEvePerson the related object to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildGroupPersonTypeQuery The current query, for fluid interface
  */
 public function filterByGroupEvePerson($groupEvePerson, $comparison = null)
 {
     if ($groupEvePerson instanceof \ECP\GroupEvePerson) {
         return $this->addUsingAlias(GroupPersonTypeTableMap::COL_ID, $groupEvePerson->getGrouppersontypeid(), $comparison);
     } elseif ($groupEvePerson instanceof ObjectCollection) {
         return $this->useGroupEvePersonQuery()->filterByPrimaryKeys($groupEvePerson->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByGroupEvePerson() only accepts arguments of type \\ECP\\GroupEvePerson or Collection');
     }
 }