class Shopware_Controllers_Backend_CanceledOrder extends Shopware_Controllers_Backend_ExtJs
{ /**
* @return void
*/
public function convertOrderAction() { if (!
($orderId =
$this->
Request()->
getParam('orderId'
))) { $this->
View()->
assign([ 'success' => false,
'message' =>
$this->
translateMessage('errorMessage/noOrderId', 'No orderId passed.'
),
]);
return;
} // Get user, shipping and billing
$builder =
$this->
get('models'
)->
createQueryBuilder();
$builder->
select(['orders', 'customer', 'billing', 'payment', 'shipping'
]) ->
from(Order::
class, 'orders'
) ->
leftJoin('orders.customer', 'customer'
) ->
leftJoin('orders.payment', 'payment'
)