Browse Source

Merge branch 'develop'

master
Guillaume 4 years ago
parent
commit
9127bade42
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      ShopBundle/Model/OrderShop.php

+ 3
- 2
ShopBundle/Model/OrderShop.php View File



namespace Lc\ShopBundle\Model; namespace Lc\ShopBundle\Model;


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


/** /**
* @ORM\MappedSuperclass() * @ORM\MappedSuperclass()


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

Loading…
Cancel
Save