Преглед на файлове

Merge branch 'develop' of https://gitea.laclic.fr/Laclic/LcShopBundle into develop

feature/module_traiteur_v1
Fab преди 4 години
родител
ревизия
46ff4679b8
променени са 1 файла, в които са добавени 3 реда и са изтрити 2 реда
  1. +3
    -2
      ShopBundle/Model/OrderShop.php

+ 3
- 2
ShopBundle/Model/OrderShop.php Целия файл

@@ -2,13 +2,14 @@

namespace Lc\ShopBundle\Model;

use App\Entity\OrderStatus;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Gedmo\Mapping\Annotation as Gedmo;
use Doctrine\ORM\Mapping as ORM;
use Lc\ShopBundle\Context\DocumentInterface;
use Lc\ShopBundle\Context\FilterMerchantInterface;
use Lc\ShopBundle\Services\Order\OrderUtils;
use Lc\ShopBundle\Model\OrderStatus ;

/**
* @ORM\MappedSuperclass()
@@ -157,7 +158,7 @@ abstract class OrderShop extends AbstractEntity implements FilterMerchantInterfa

public function getDateCreated()
{
$orderStatusHistory = $this->getOrderStatusHistory('new');
$orderStatusHistory = $this->getOrderStatusHistory(OrderStatus::ALIAS_WAITING_DELIVERY);
if ($orderStatusHistory) {
return $orderStatusHistory->getCreatedAt();
}

Loading…
Отказ
Запис