Added heper methods to easyly get order status object

This commit is contained in:
Franck Allimant
2014-04-12 02:36:17 +02:00
parent e86c4f44fc
commit 060df3ed61
3 changed files with 221 additions and 1 deletions

View File

@@ -206,7 +206,7 @@ class Order extends BaseAction implements EventSubscriberInterface
$placedOrder->setInvoiceOrderAddressId($invoiceOrderAddress->getId());
$placedOrder->setStatusId(
OrderStatusQuery::create()->findOneByCode(OrderStatus::CODE_NOT_PAID)->getId()
OrderStatusQuery::getNotPaidStatus()->getId()
);
/* memorize discount */