private function findAccountsByIds($ids)
    {
        if (0 === count($ids)) {
            return [];
        }

        $queryBuilder = $this->entityManager->createQueryBuilder()
            ->select('CONCAT(\'a\', a.id) AS id, a.name AS name')
            ->from($this->accountEntityClass, 'a')
            ->where('a.id IN (:ids)');

        $query = $queryBuilder->getQuery();
        $query->setParameter('ids', $ids);

        return $query->getArrayResult();
    }
private function findAccountsByIds($ids)
    {
        if (0 === count($ids)) {
            return [];
        }

        $queryBuilder = $this->entityManager->createQueryBuilder()
            ->select('CONCAT(\'a\', a.id) AS id, a.name AS name')
            ->from($this->accountEntityClass, 'a')
            ->where('a.id IN (:ids)');

        $query = $queryBuilder->getQuery();
        $query->setParameter('ids', $ids);

        return $query->getArrayResult();
    }
private function findAccountsByIds ( $ ids ) { if ( 0 === count ( $ ids ) ) { return [ ] ; } $ queryBuilder = $ this -> entityManager -> createQueryBuilder ( ) -> select ( 'CONCAT(\'a\', a.id) AS id, a.name AS name' ) -> from ( $ this -> accountEntityClass , 'a' ) -> where ( 'a.id IN (:ids)' ) ; $ query = $ queryBuilder -> getQuery ( ) ; $ query -> setParameter ( 'ids' , $ ids ) ; return $ query -> getArrayResult ( ) ; }
Returns array of accounts by ids.

@param array $ids

@return array
Returns array of accounts by ids .