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');
        }
    }