src/Sulu/Bundle/MediaBundle/Entity/MediaRepository.php
private function getIds(
        $collection = null,
        $systemCollections = true,
        $types = null,
        $search = null,
        $orderBy = null,
        $orderSort = null,
        $limit = null,
        $offset = null
    ) {
        $subQuery = $this->getIdsQuery(
            $collection,
            $systemCollections,
            $types,
            $search,
            $orderBy,
            $orderSort,
            $limit,
            $offset
        );

        return $subQuery->getScalarResult();
    }
private function getIds(
        $collection = null,
        $systemCollections = true,
        $types = null,
        $search = null,
        $orderBy = null,
        $orderSort = null,
        $limit = null,
        $offset = null
    ) {
        $subQuery = $this->getIdsQuery(
            $collection,
            $systemCollections,
            $types,
            $search,
            $orderBy,
            $orderSort,
            $limit,
            $offset
        );

        return $subQuery->getScalarResult();
    }
private function getIds ( $ collection = null , $ systemCollections = true , $ types = null , $ search = null , $ orderBy = null , $ orderSort = null , $ limit = null , $ offset = null ) { $ subQuery = $ this -> getIdsQuery ( $ collection , $ systemCollections , $ types , $ search , $ orderBy , $ orderSort , $ limit , $ offset ) ; return $ subQuery -> getScalarResult ( ) ; }
returns ids with given filters.

@param string $collection
@param bool $systemCollections
@param array $types
@param string $search
@param string $orderBy
@param string $orderSort
@param int $limit
@param int $offset

@return array
returns ids with given filters .