src/Entity/Slave/ProductRegenerated.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_regenerated")
  9.  * @ORM\Entity(repositoryClass="App\Repository\Slave\ProductRegeneratedRepository")
  10.  */
  11. class ProductRegenerated
  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="datetime", type="datetime")
  22.      */
  23.     protected $datetime;
  24.     // ManyToOne
  25.         /**
  26.          * @ORM\ManyToOne(targetEntity="App\Entity\Slave\Product", inversedBy="regeneratedProducts")
  27.          * @ORM\JoinColumn(name="product_id", referencedColumnName="id")
  28.          */
  29.         private $product;
  30.         /**
  31.          * @ORM\ManyToOne(targetEntity="App\Entity\Slave\Supplier", inversedBy="regeneratedProducts")
  32.          * @ORM\JoinColumn(name="supplier_id", referencedColumnName="id")
  33.          */
  34.         private $supplier;
  35.     //
  36.     public function getId(): ?string
  37.     {
  38.         return $this->id;
  39.     }
  40.     public function getProduct(): ?Product
  41.     {
  42.         return $this->product;
  43.     }
  44.     public function setProduct(?Product $product): static
  45.     {
  46.         $this->product $product;
  47.         return $this;
  48.     }
  49.     public function getSupplier(): ?Supplier
  50.     {
  51.         return $this->supplier;
  52.     }
  53.     public function setSupplier(?Supplier $supplier): static
  54.     {
  55.         $this->supplier $supplier;
  56.         return $this;
  57.     }
  58.     public function getDatetime(): ?\DateTimeInterface
  59.     {
  60.         return $this->datetime;
  61.     }
  62.     public function setDatetime(\DateTimeInterface $datetime): static
  63.     {
  64.         $this->datetime $datetime;
  65.         return $this;
  66.     }
  67. }