<?phpnamespace App\Entity;use DateTime;use Doctrine\ORM\Mapping as ORM;/** * Class SupplierCustomerNoTP * * @ORM\Entity * @ORM\Entity(repositoryClass="App\Repository\SupplierCustomerNoTPRepository") * @ORM\Table(name="malys_supplier_customer_no_tp") * @ORM\HasLifecycleCallbacks() * @package App\Entity */class SupplierCustomerNoTP{ /** * @var integer * * @ORM\Column(name="id", type="integer") * @ORM\Id * @ORM\GeneratedValue(strategy="AUTO") */ protected $id; /** * @var Customer * @ORM\ManyToOne(targetEntity="Customer") * @ORM\JoinColumn(name="customer_id", referencedColumnName="id") */ protected $customer; /** * @var Supplier * * @ORM\ManyToOne(targetEntity="Supplier") * @ORM\JoinColumn(name="supplier_id", referencedColumnName="id") */ protected $supplier; /** * @var DateTime * * @ORM\Column(name="createdAt", type="datetime", nullable=false) */ protected $createdAt; /** * @var DateTime * * @ORM\Column(name="updatedAt", type="datetime", nullable=true) */ protected $updatedAt; /** * @return int */ public function getId() { return $this->id; } /** * @param int $id */ public function setId($id) { $this->id = $id; } /** * @return Customer */ public function getCustomer() { return $this->customer; } /** * @param Customer $customer */ public function setCustomer(Customer $customer) { $this->customer = $customer; } /** * @return Supplier */ public function getSupplier() { return $this->supplier; } /** * @param Supplier $supplier */ public function setSupplier(Supplier $supplier) { $this->supplier = $supplier; } /** * @return DateTime */ public function getCreatedAt() { return $this->createdAt; } /** * Set createdAt * * @return SupplierCustomerNoTP * @ORM\PrePersist */ public function setCreatedAt() { $this->createdAt = new DateTime(); $this->updatedAt = new DateTime(); return $this; } /** * @return DateTime */ public function getUpdatedAt() { return $this->updatedAt; } /** * Set updatedAt * * @return SupplierCustomerNoTP * @ORM\PreUpdate */ public function setUpdatedAt() { $this->updatedAt = new DateTime(); return $this; }}