'billing.department',
'billing.street',
'billing.zipCode',
'billing.city',
'billing.phone',
'shipping.countryId as shippingCountryId',
'billing.countryId as billingCountryId',
'billingCountry.name as countryName',
'orderStatus.id as orderStateId',
'orderStatus.name as orderStateKey',
]);
$query->
from(Order::
class, 'entity',
$this->
getIdentifierField());
$query->
leftJoin('entity.details', 'orderDetails'
);
$query->
leftJoin(Article::
class, 'product', Join::WITH, 'orderDetails.articleId = product.id'
);
$query->
leftJoin('product.supplier', 'supplier'
);
$query->
leftJoin('entity.payment', 'payment'
);
$query->
leftJoin('entity.orderStatus', 'orderStatus'
);
$query->
leftJoin('entity.dispatch', 'dispatch'
);
$query->
leftJoin('entity.shop', 'shop'
);
$query->
leftJoin('entity.customer', 'customer'
);
$query->
leftJoin('entity.billing', 'billing'
);
$query->
leftJoin('entity.shipping', 'shipping'
);
$query->
leftJoin('billing.country', 'billingCountry'
);