if (isset($states[$country->
getId()])) { $country->
setStates( $this->
sortStates($states[$country->
getId()]) );
} $result[$country->
getId()] =
$country;
} return $this->
sortCountries($result);
} /**
* @return int[]
*/
private function getCountryIds(): array
{ $query =
$this->connection->
createQueryBuilder();
$query->
select('id'
);
$query->
from('s_core_countries', 'country'
);