<?php
namespace App\Entity\Slave;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Table(name="eposm_s_product_regenerated")
* @ORM\Entity(repositoryClass="App\Repository\Slave\ProductRegeneratedRepository")
*/
class ProductRegenerated
{
/**
* @ORM\Column(name="id", type="bigint")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
protected $id;
/**
* @ORM\Column(name="datetime", type="datetime")
*/
protected $datetime;
// ManyToOne
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Slave\Product", inversedBy="regeneratedProducts")
* @ORM\JoinColumn(name="product_id", referencedColumnName="id")
*/
private $product;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Slave\Supplier", inversedBy="regeneratedProducts")
* @ORM\JoinColumn(name="supplier_id", referencedColumnName="id")
*/
private $supplier;
//
public function getId(): ?string
{
return $this->id;
}
public function getProduct(): ?Product
{
return $this->product;
}
public function setProduct(?Product $product): static
{
$this->product = $product;
return $this;
}
public function getSupplier(): ?Supplier
{
return $this->supplier;
}
public function setSupplier(?Supplier $supplier): static
{
$this->supplier = $supplier;
return $this;
}
public function getDatetime(): ?\DateTimeInterface
{
return $this->datetime;
}
public function setDatetime(\DateTimeInterface $datetime): static
{
$this->datetime = $datetime;
return $this;
}
}