| 1 | <?php |
||
| 23 | trait IdTrait |
||
| 24 | { |
||
| 25 | /** |
||
| 26 | * @ORM\Column(name="id", type="integer") |
||
| 27 | * @ORM\Id |
||
| 28 | * @ORM\GeneratedValue(strategy="AUTO") |
||
| 29 | * @var null|integer |
||
| 30 | */ |
||
| 31 | protected $id; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Get the entity's unique ID. |
||
| 35 | * |
||
| 36 | * @return null|integer Before the entity is persisted null is return. Then |
||
| 37 | * after, it's integer ID is returned. |
||
| 38 | */ |
||
| 39 | public function getId() |
||
| 43 | } |
||
| 44 |