getQueryBuilderForTable('be_users'); return $queryBuilder ->count('*') ->from('be_users') ->where( $queryBuilder->expr()->eq( 'admin', $queryBuilder->createNamedParameter(0, Connection::PARAM_INT) ) ) ->execute(); } }