public function loadPriceData($storeId, $productIds)
    {
        $websiteId = $this->getStore($storeId)->getWebsiteId();

        $baseSelects = [];
        foreach ($this->getPriceIndexDimensionsTables($websiteId) as $dimensionsTable) {
            $baseSelects[] = $this->getLoadPriceDataSelect($dimensionsTable, $websiteId, $productIds);
        }
        $select = $this->getConnection()->select()->union($baseSelects);

        return $this->getConnection()->fetchAll($select);
    }
public function loadPriceData($storeId, $productIds)
    {
        $websiteId = $this->getStore($storeId)->getWebsiteId();

        $baseSelects = [];
        foreach ($this->getPriceIndexDimensionsTables($websiteId) as $dimensionsTable) {
            $baseSelects[] = $this->getLoadPriceDataSelect($dimensionsTable, $websiteId, $productIds);
        }
        $select = $this->getConnection()->select()->union($baseSelects);

        return $this->getConnection()->fetchAll($select);
    }
public function loadPriceData ( $ storeId , $ productIds ) { $ websiteId = $ this -> getStore ( $ storeId ) -> getWebsiteId ( ) ; $ baseSelects = [ ] ; foreach ( $ this -> getPriceIndexDimensionsTables ( $ websiteId ) as $ dimensionsTable ) { $ baseSelects [ ] = $ this -> getLoadPriceDataSelect ( $ dimensionsTable , $ websiteId , $ productIds ) ; } $ select = $ this -> getConnection ( ) -> select ( ) -> union ( $ baseSelects ) ; return $ this -> getConnection ( ) -> fetchAll ( $ select ) ; }
Load prices data for a list of product ids and a given store.

@param integer $storeId    Store id.
@param array   $productIds Product ids list.

@return array
Load prices data for a list of product ids and a given store .