public function getProductPositions($categoryId, $storeId)
    {
        $select = $this->getBaseSelect()
            ->where('category_id = ?', (int) $categoryId)
            ->where('store_id = ?', (int) $storeId)
            ->where('position IS NOT NULL')
            ->columns(['product_id', 'position']);

        return $this->getConnection()->fetchPairs($select);
    }
public function getProductPositions($categoryId, $storeId)
    {
        $select = $this->getBaseSelect()
            ->where('category_id = ?', (int) $categoryId)
            ->where('store_id = ?', (int) $storeId)
            ->where('position IS NOT NULL')
            ->columns(['product_id', 'position']);

        return $this->getConnection()->fetchPairs($select);
    }
public function getProductPositions ( $ categoryId , $ storeId ) { $ select = $ this -> getBaseSelect ( ) -> where ( 'category_id = ?' , ( int ) $ categoryId ) -> where ( 'store_id = ?' , ( int ) $ storeId ) -> where ( 'position IS NOT NULL' ) -> columns ( [ 'product_id' , 'position' ] ) ; return $ this -> getConnection ( ) -> fetchPairs ( $ select ) ; }
Get product positions for a given categoryId and Store Id.

@param int $categoryId The Category Id.
@param int $storeId    The Store Id.

@return array
Get product positions for a given categoryId and Store Id .