예제 #1
0
파일: UserQuery.php 프로젝트: nirkbirk/site
 /**
  * Filter the query by a related \UserAttributeValues object
  *
  * @param \UserAttributeValues|ObjectCollection $userAttributeValues 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 filterByUserAttributeValues($userAttributeValues, $comparison = null)
 {
     if ($userAttributeValues instanceof \UserAttributeValues) {
         return $this->addUsingAlias(UserTableMap::COL_ID, $userAttributeValues->getUserId(), $comparison);
     } elseif ($userAttributeValues instanceof ObjectCollection) {
         return $this->useUserAttributeValuesQuery()->filterByPrimaryKeys($userAttributeValues->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByUserAttributeValues() only accepts arguments of type \\UserAttributeValues or Collection');
     }
 }