src/Entity/Slave/ProductLog.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Slave;
  3. use Doctrine\Common\Collections\ArrayCollection;
  4. use Doctrine\Common\Collections\Collection;
  5. use Doctrine\DBAL\Types\Types;
  6. use Doctrine\ORM\Mapping as ORM;
  7. /**
  8.  * @ORM\Table(name="eposm_s_product_log")
  9.  * @ORM\Entity(repositoryClass="App\Repository\Slave\ProductLogRepository")
  10.  */
  11. class ProductLog
  12. {        
  13.     /**
  14.      * @ORM\Column(name="id", type="bigint")
  15.      * @ORM\Id
  16.      * @ORM\GeneratedValue(strategy="AUTO")
  17.      */
  18.     protected $id;
  19.        
  20.     /**
  21.      * @ORM\Column(name="text", type="text", nullable=true)
  22.      */
  23.     protected $text;
  24.     /**
  25.      * @ORM\Column(name="datetime", type="datetime")
  26.      */
  27.     protected $datetime;
  28.     
  29.     /**
  30.      * @ORM\Column(name="type", type="string", length=191)
  31.      */
  32.     protected $type;
  33.     
  34.     /**
  35.      * @ORM\Column(name="old_data_id", type="string", length=191, nullable=true)
  36.      */
  37.     protected $oldDataId;
  38.     // ManyToOne
  39.         /**
  40.          * @ORM\ManyToOne(targetEntity="App\Entity\Slave\Product", inversedBy="logs")
  41.          * @ORM\JoinColumn(name="product_id", referencedColumnName="id")
  42.          */
  43.         private $product;
  44.         
  45.         /**
  46.          * @ORM\ManyToOne(targetEntity="App\Entity\Slave\Intervention", inversedBy="productLogs")
  47.          * @ORM\JoinColumn(name="intervention_id", referencedColumnName="id")
  48.          */
  49.         private $intervention;
  50.     //
  51.     public function getId(): ?string
  52.     {
  53.         return $this->id;
  54.     }
  55.     public function getText(): ?string
  56.     {
  57.         return $this->text;
  58.     }
  59.     public function setText(?string $text): static
  60.     {
  61.         $this->text $text;
  62.         return $this;
  63.     }
  64.     public function getDatetime(): ?\DateTimeInterface
  65.     {
  66.         return $this->datetime;
  67.     }
  68.     public function setDatetime(\DateTimeInterface $datetime): static
  69.     {
  70.         $this->datetime $datetime;
  71.         return $this;
  72.     }
  73.     public function getType(): ?string
  74.     {
  75.         return $this->type;
  76.     }
  77.     public function setType(string $type): static
  78.     {
  79.         $this->type $type;
  80.         return $this;
  81.     }
  82.     public function getOldDataId(): ?string
  83.     {
  84.         return $this->oldDataId;
  85.     }
  86.     public function setOldDataId(?string $oldDataId): static
  87.     {
  88.         $this->oldDataId $oldDataId;
  89.         return $this;
  90.     }
  91.     public function getProduct(): ?Product
  92.     {
  93.         return $this->product;
  94.     }
  95.     public function setProduct(?Product $product): static
  96.     {
  97.         $this->product $product;
  98.         return $this;
  99.     }
  100.     public function getIntervention(): ?Intervention
  101.     {
  102.         return $this->intervention;
  103.     }
  104.     public function setIntervention(?Intervention $intervention): static
  105.     {
  106.         $this->intervention $intervention;
  107.         return $this;
  108.     }
  109. }