protected function loadEntities(array $entityIds)
    {
        if (count($entityIds) === 0) {
            return null;
        }

        $entities = [];

        // Create and store the entities associated with each Id
        foreach ($entityIds as $entityId) {
            $hash = $this->getEntityHashById($entityId);

            if ($hash === null) {
                return null;
            }

            $entities[] = $this->loadEntity($hash);
        }

        return $entities;
    }
protected function loadEntities(array $entityIds)
    {
        if (count($entityIds) === 0) {
            return null;
        }

        $entities = [];

        // Create and store the entities associated with each Id
        foreach ($entityIds as $entityId) {
            $hash = $this->getEntityHashById($entityId);

            if ($hash === null) {
                return null;
            }

            $entities[] = $this->loadEntity($hash);
        }

        return $entities;
    }
protected function loadEntities ( array $ entityIds ) { if ( count ( $ entityIds ) === 0 ) { return null ; } $ entities = [ ] ; // Create and store the entities associated with each Id foreach ( $ entityIds as $ entityId ) { $ hash = $ this -> getEntityHashById ( $ entityId ) ; if ( $ hash === null ) { return null ; } $ entities [ ] = $ this -> loadEntity ( $ hash ) ; } return $ entities ; }
Loads multiple entities from their Ids

@param array $entityIds The list of Ids of entities to load
@return array|null The list of entities if they were all found in cache, otherwise null
Loads multiple entities from their Ids