$this->client =
$client;
$this->provider =
$provider;
$this->queryFactory =
$queryFactory;
} public function populate(ShopIndex
$index, ProgressHelperInterface
$progress) { $query =
$this->queryFactory->
createQuery(100
);
$progress->
start($query->
fetchCount(), 'Indexing properties'
);
while ($ids =
$query->
fetch()) { $this->
indexProperties($index,
$ids);
$progress->
advance(\
count($ids));
} $progress->
finish();
} /**
* @param int[] $groupIds
*/
public function indexProperties(ShopIndex
$index,
$groupIds) { if (empty($groupIds)) {