src/Alchemy/Component/Cerberus/Model/Base/RoleQuery.php
public function filterByUserRole($userRole, $comparison = null)
    {
        if ($userRole instanceof \Alchemy\Component\Cerberus\Model\UserRole) {
            return $this
                ->addUsingAlias(RoleTableMap::COL_ID, $userRole->getRoleId(), $comparison);
        } elseif ($userRole instanceof ObjectCollection) {
            return $this
                ->useUserRoleQuery()
                ->filterByPrimaryKeys($userRole->getPrimaryKeys())
                ->endUse();
        } else {
            throw new PropelException('filterByUserRole() only accepts arguments of type \Alchemy\Component\Cerberus\Model\UserRole or Collection');
        }
    }
public function filterByUserRole($userRole, $comparison = null)
    {
        if ($userRole instanceof \Alchemy\Component\Cerberus\Model\UserRole) {
            return $this
                ->addUsingAlias(RoleTableMap::COL_ID, $userRole->getRoleId(), $comparison);
        } elseif ($userRole instanceof ObjectCollection) {
            return $this
                ->useUserRoleQuery()
                ->filterByPrimaryKeys($userRole->getPrimaryKeys())
                ->endUse();
        } else {
            throw new PropelException('filterByUserRole() only accepts arguments of type \Alchemy\Component\Cerberus\Model\UserRole or Collection');
        }
    }
public function filterByUserRole ( $ userRole , $ comparison = null ) { if ( $ userRole instanceof \ Alchemy \ Component \ Cerberus \ Model \ UserRole ) { return $ this -> addUsingAlias ( RoleTableMap :: COL_ID , $ userRole -> getRoleId ( ) , $ comparison ) ; } elseif ( $ userRole instanceof ObjectCollection ) { return $ this -> useUserRoleQuery ( ) -> filterByPrimaryKeys ( $ userRole -> getPrimaryKeys ( ) ) -> endUse ( ) ; } else { throw new PropelException ( 'filterByUserRole() only accepts arguments of type \Alchemy\Component\Cerberus\Model\UserRole or Collection' ) ; } }
Filter the query by a related \Alchemy\Component\Cerberus\Model\UserRole object

@param \Alchemy\Component\Cerberus\Model\UserRole|ObjectCollection $userRole  the related object to use as filter
@param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL

@return ChildRoleQuery The current query, for fluid interface
Filter the query by a related \ Alchemy \ Component \ Cerberus \ Model \ UserRole object