Implemented optimistic lock draft

This commit is contained in:
Kevin Frantz
2018-10-25 20:42:52 +02:00
parent 8de52474a5
commit e066e8b362
7 changed files with 96 additions and 9 deletions

View File

@@ -0,0 +1,25 @@
<?php
namespace App\Entity\Attribut;
/**
*
* @author kevinfrantz
*
*/
trait VersionAttribut
{
/**
*
* @var int
*/
protected $version;
public function setVersion(int $version):void{
$this->version = $version;
}
public function getVersion():int{
return $this->version;
}
}