Optimized Entity draft

This commit is contained in:
Kevin Frantz
2018-09-06 13:52:34 +02:00
parent 74038092e3
commit 3d42526698
13 changed files with 66 additions and 50 deletions

View File

@@ -0,0 +1,27 @@
<?php
namespace App\Entity\Attribut;
/**
*
* @author kevinfrantz
*
*/
trait IdAttribut {
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")(strategy="AUTO")
*/
protected $id;
public function setId(int $id): void
{
$this->id = $id;
}
public function getId(): int
{
return $this->id;
}
}