瀏覽代碼

Merge branch 'develop'

master
Guillaume 4 年之前
父節點
當前提交
3f456ccda1
共有 2 個文件被更改,包括 16 次插入1 次删除
  1. +15
    -0
      ShopBundle/Model/Document.php
  2. +1
    -1
      ShopBundle/Services/TicketUtils.php

+ 15
- 0
ShopBundle/Model/Document.php 查看文件

@@ -6,6 +6,7 @@ use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
use Lc\ShopBundle\Context\FilterMerchantInterface;
use Gedmo\Mapping\Annotation as Gedmo;

/**
* @ORM\MappedSuperclass()
@@ -80,6 +81,20 @@ abstract class Document extends AbstractDocumentEntity implements FilterMerchant
*/
protected $orderRefund;

/**
* @Gedmo\Blameable(on="create")
* @ORM\ManyToOne(targetEntity="Lc\ShopBundle\Context\UserInterface")
* @ORM\JoinColumn(nullable=true)
*/
protected $createdBy;

/**
* @Gedmo\Blameable(on="update")
* @ORM\ManyToOne(targetEntity="Lc\ShopBundle\Context\UserInterface")
* @ORM\JoinColumn(nullable=true)
*/
protected $updatedBy;

public function __construct()
{
$this->orderShops = new ArrayCollection();

+ 1
- 1
ShopBundle/Services/TicketUtils.php 查看文件

@@ -38,7 +38,7 @@ class TicketUtils
$ticket->setVisitorToken(uniqid()) ;
}

$ticket->setTicketStatus(Ticket::TICKET_STATUS_OPEN) ;
$ticket->setStatus(Ticket::TICKET_STATUS_OPEN) ;
$ticket->setType($params['type']) ;
if(isset($params['orderShop']) && $params['orderShop'] && $params['orderShop'] instanceof OrderShopInterface) {
$ticket->setOrderShop($params['orderShop']) ;

Loading…
取消
儲存