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

@@ -9,6 +9,7 @@ use App\Entity\Attribut\IdAttribut;
use App\Creator\Modificator\Entity\LawModificator;
use App\Entity\Source\UserSourceInterface;
use App\Entity\Source\UserSource;
use App\Entity\Attribut\VersionAttribut;
/**
* @author kevinfrantz
@@ -17,7 +18,7 @@ use App\Entity\Source\UserSource;
*/
class User extends BaseUser implements UserInterface
{
use SourceAttribut,IdAttribut;
use SourceAttribut,IdAttribut, VersionAttribut;
/**
* @var UserSourceInterface
@@ -37,6 +38,13 @@ class User extends BaseUser implements UserInterface
* @ORM\Column(type="integer")(strategy="AUTO")
*/
protected $id;
/**
*
* @version @ORM\Column(type="integer")
* @var int
*/
protected $version;
public function __construct()
{