You've already forked symfony-playground
simulation model
This commit is contained in:
35
src/Entity/MerDT.php
Normal file
35
src/Entity/MerDT.php
Normal file
@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
namespace App\Entity;
|
||||
|
||||
use App\Repository\MerDTRepository;
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
|
||||
//#[ORM\Entity(repositoryClass: MerDTRepository::class)]
|
||||
trait MerDT
|
||||
{
|
||||
// #[ORM\Id]
|
||||
// #[ORM\GeneratedValue]
|
||||
// #[ORM\Column(type: 'integer')]
|
||||
// private $id;
|
||||
|
||||
#[ORM\Column(type: 'string', length: 255)]
|
||||
private $serviceId;
|
||||
|
||||
// public function getId(): ?int
|
||||
// {
|
||||
// return $this->id;
|
||||
// }
|
||||
|
||||
public function getServiceId(): ?string
|
||||
{
|
||||
return $this->serviceId;
|
||||
}
|
||||
|
||||
public function setServiceId(string $serviceId): self
|
||||
{
|
||||
$this->serviceId = $serviceId;
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user