$query =
$this->
createStateQuery($context);
$query->
where('countryState.id IN (:ids)'
) ->
setParameter(':ids',
$ids, Connection::PARAM_INT_ARRAY
);
$data =
$query->
execute()->
fetchAll(PDO::FETCH_ASSOC
);
$states =
[];
foreach ($data as $row) { $state =
$this->countryHydrator->
hydrateState($row);
$states[$state->
getId()] =
$state;
} return $this->
sortByIds($ids,
$states);
} /**
* {@inheritdoc}
*/
public function getCountryStates($countryIds, ShopContextInterface
$context) {