/**
  * Declares an association between this object and a ChildExperts object.
  *
  * @param  ChildExperts $v
  * @return $this|\ExpertGroupMembers The current object (for fluent API support)
  * @throws PropelException
  */
 public function setExperts(ChildExperts $v = null)
 {
     if ($v === null) {
         $this->setExpert(NULL);
     } else {
         $this->setExpert($v->getUsername());
     }
     $this->aExperts = $v;
     // Add binding for other direction of this n:n relationship.
     // If this object has already been added to the ChildExperts object, it will not be re-added.
     if ($v !== null) {
         $v->addExpertGroupMembers($this);
     }
     return $this;
 }
 /**
  * Filter the query by a related \Experts object
  *
  * @param \Experts|ObjectCollection $experts The related object(s) to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildResponsesQuery The current query, for fluid interface
  */
 public function filterByExperts($experts, $comparison = null)
 {
     if ($experts instanceof \Experts) {
         return $this->addUsingAlias(ResponsesTableMap::COL_EXPERT, $experts->getUsername(), $comparison);
     } elseif ($experts instanceof ObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(ResponsesTableMap::COL_EXPERT, $experts->toKeyValue('PrimaryKey', 'Username'), $comparison);
     } else {
         throw new PropelException('filterByExperts() only accepts arguments of type \\Experts or Collection');
     }
 }
 /**
  * Exclude object from result
  *
  * @param   ChildExperts $experts Object to remove from the list of results
  *
  * @return $this|ChildExpertsQuery The current query, for fluid interface
  */
 public function prune($experts = null)
 {
     if ($experts) {
         $this->addUsingAlias(ExpertsTableMap::COL_USERNAME, $experts->getUsername(), Criteria::NOT_EQUAL);
     }
     return $this;
 }