28 lines
332 B
PHP
28 lines
332 B
PHP
<?php declare(strict_types = 1);
|
|
|
|
namespace App\Model\Database\Entity\Attributes;
|
|
|
|
trait TId
|
|
{
|
|
|
|
/**
|
|
* @var int
|
|
* @ORM\Column(type="integer", nullable=FALSE)
|
|
* @ORM\Id
|
|
* @ORM\GeneratedValue
|
|
*/
|
|
private $id;
|
|
|
|
public function getId(): int
|
|
{
|
|
return $this->id;
|
|
}
|
|
|
|
|
|
public function __clone()
|
|
{
|
|
$this->id = null;
|
|
}
|
|
|
|
}
|