/** * 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 ChildGroupQuery The current query, for fluid interface */ public function filterByGroupEvePerson($groupEvePerson, $comparison = null) { if ($groupEvePerson instanceof \ECP\GroupEvePerson) { return $this->addUsingAlias(GroupTableMap::COL_ID, $groupEvePerson->getGroupid(), $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'); } }