private function addCondition(HasAddressWithCountryCondition
$condition, QueryBuilder
$query): void
{ $query->
innerJoin( 'customer',
's_user_addresses',
'addresses',
'addresses.user_id = customer.id
AND addresses.country_id IN (:HasAddressWithCountryCondition)'
);
$query->
addGroupBy('customer.id'
);
$query->
setParameter(':HasAddressWithCountryCondition',
$condition->
getCountryIds(), Connection::PARAM_INT_ARRAY
);
}}