/** * Filter the query by a related \UserAttributeValue object * * @param \UserAttributeValue|ObjectCollection $userAttributeValue the related object to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return ChildUserQuery The current query, for fluid interface */ public function filterByUserAttributeValue($userAttributeValue, $comparison = null) { if ($userAttributeValue instanceof \UserAttributeValue) { return $this->addUsingAlias(UserTableMap::COL_ID, $userAttributeValue->getUserId(), $comparison); } elseif ($userAttributeValue instanceof ObjectCollection) { return $this->useUserAttributeValueQuery()->filterByPrimaryKeys($userAttributeValue->getPrimaryKeys())->endUse(); } else { throw new PropelException('filterByUserAttributeValue() only accepts arguments of type \\UserAttributeValue or Collection'); } }