Files
nette-vite/app/model/Database/Entity/Attributes/TId.php
2022-03-12 16:25:30 +01:00

30 lines
359 B
PHP
Executable File

<?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
*
* @property int $id
*/
private $id;
public function getId(): int
{
return $this->id;
}
public function __clone()
{
$this->id = null;
}
}