symfony-playground/src/Entity/MerParaDM.php

38 lines
711 B
PHP
Raw Normal View History

2022-05-23 13:22:36 +00:00
<?php
namespace App\Entity;
use App\Repository\MerParaDMRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: MerParaDMRepository::class)]
class MerParaDM extends MerService
{
use MerDM;
// #[ORM\Id]
// #[ORM\GeneratedValue]
// #[ORM\Column(type: 'integer')]
// private $id;
#[ORM\Column(type: 'string', length: 255)]
2022-05-24 08:06:04 +00:00
private $product_code;
2022-05-23 13:22:36 +00:00
// public function getId(): ?int
// {
// return $this->id;
// }
public function getProductCode(): ?string
{
2022-05-24 08:06:04 +00:00
return $this->product_code;
2022-05-23 13:22:36 +00:00
}
public function setProductCode(string $productCode): self
{
2022-05-24 08:06:04 +00:00
$this->product_code = $productCode;
2022-05-23 13:22:36 +00:00
return $this;
}
}