if ($this->
hasColumn('customer', 'account_type'
)) { $this->connection->
executeStatement('ALTER TABLE `customer` DROP COLUMN `account_type`'
);
} } /**
* @return false|CustomerData
*/
private function fetchCustomer(): false|array
{ /** @var false|CustomerData $results */
$results =
$this->connection->
fetchAssociative( 'SELECT
LOWER(HEX(`customer`.`id`)) AS `id`,
`customer`.`company`,
`customer`.`account_type`,
`customer`.`vat_ids`,
`customer_address`.`company` as `billing_company`
FROM
`customer`
JOIN
`customer_address` ON `customer`.`default_billing_address_id` = `customer_address`.`id`
WHERE `customer`.`id` = :customerId',
[