/** * 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; }
/** * Declares an association between this object and a ChildExpertGroup object. * * @param ChildExpertGroup $v * @return $this|\ExpertGroupMembers The current object (for fluent API support) * @throws PropelException */ public function setExpertGroup(ChildExpertGroup $v = null) { if ($v === null) { $this->setGroupName(NULL); } else { $this->setGroupName($v->getGroupName()); } $this->aExpertGroup = $v; // Add binding for other direction of this n:n relationship. // If this object has already been added to the ChildExpertGroup object, it will not be re-added. if ($v !== null) { $v->addExpertGroupMembers($this); } 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'); } }