Bladeren bron

Correctif updated by documents

feature/export_comptable
Guillaume 4 jaren geleden
bovenliggende
commit
380905ae12
1 gewijzigde bestanden met toevoegingen van 15 en 0 verwijderingen
  1. +15
    -0
      ShopBundle/Model/Document.php

+ 15
- 0
ShopBundle/Model/Document.php Bestand weergeven

@@ -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();

Laden…
Annuleren
Opslaan