Esempio n. 1
0
 /**
  * Filter the query by a related sfGuardUserGroup object
  *
  * @param     sfGuardUserGroup $sfGuardUserGroup  the related object to use as filter
  * @param     string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return    sfGuardUserQuery The current query, for fluid interface
  */
 public function filterBysfGuardUserGroup($sfGuardUserGroup, $comparison = null)
 {
     if ($sfGuardUserGroup instanceof sfGuardUserGroup) {
         return $this->addUsingAlias(sfGuardUserPeer::ID, $sfGuardUserGroup->getUserId(), $comparison);
     } elseif ($sfGuardUserGroup instanceof PropelCollection) {
         return $this->usesfGuardUserGroupQuery()->filterByPrimaryKeys($sfGuardUserGroup->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterBysfGuardUserGroup() only accepts arguments of type sfGuardUserGroup or PropelCollection');
     }
 }