if ($toManipulate !== 'order-delivery-no-position'
) { $orderDelivery->
setPositions($orderDeliveryPositionCollection);
} if ($toManipulate !== 'order-no-order-deliveries'
) { $orderDeliveryCollection->
add($orderDelivery);
} // Transactions
$orderTransactionCollection =
new OrderTransactionCollection();
$orderTransaction =
new OrderTransactionEntity();
$orderTransaction->
setId('order-transaction-id'
);
$orderTransaction->
setPaymentMethodId('order-transaction-payment-method-id'
);
$stateMachineState =
new StateMachineStateEntity();
$stateMachineState->
setId('state-machine-state-id'
);
$stateMachineState->
setTechnicalName('state-machine-state-technical-name'
);
$orderTransaction->
setStateMachineState($stateMachineState);
$orderTransactionCancelled =
new OrderTransactionEntity();
$orderTransactionCancelled->
setId('order-transaction-cancelled-id'
);
$orderTransactionCancelled->
setPaymentMethodId('order-transaction-cancelled-payment-method-id'
);
$stateMachineStateCancelled =
new StateMachineStateEntity();