/**
  * 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->aExpertGroup) {
         $this->aExpertGroup->removeExpertGroupMembers($this);
     }
     if (null !== $this->aExperts) {
         $this->aExperts->removeExpertGroupMembers($this);
     }
     $this->expert = null;
     $this->group_name = null;
     $this->alreadyInSave = false;
     $this->clearAllReferences();
     $this->resetModified();
     $this->setNew(true);
     $this->setDeleted(false);
 }
 /**
  * Exclude object from result
  *
  * @param   ChildExpertGroup $expertGroup Object to remove from the list of results
  *
  * @return $this|ChildExpertGroupQuery The current query, for fluid interface
  */
 public function prune($expertGroup = null)
 {
     if ($expertGroup) {
         $this->addUsingAlias(ExpertGroupTableMap::COL_GROUP_NAME, $expertGroup->getGroupName(), Criteria::NOT_EQUAL);
     }
     return $this;
 }
 /**
  * Filter the query by a related \ExpertGroup object
  *
  * @param \ExpertGroup|ObjectCollection $expertGroup The related object(s) to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildExpertGroupMembersQuery The current query, for fluid interface
  */
 public function filterByExpertGroup($expertGroup, $comparison = null)
 {
     if ($expertGroup instanceof \ExpertGroup) {
         return $this->addUsingAlias(ExpertGroupMembersTableMap::COL_GROUP_NAME, $expertGroup->getGroupName(), $comparison);
     } elseif ($expertGroup instanceof ObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(ExpertGroupMembersTableMap::COL_GROUP_NAME, $expertGroup->toKeyValue('PrimaryKey', 'GroupName'), $comparison);
     } else {
         throw new PropelException('filterByExpertGroup() only accepts arguments of type \\ExpertGroup or Collection');
     }
 }