Optimized for SPA

This commit is contained in:
Kevin Frantz
2019-01-05 23:52:37 +01:00
parent 9e685260e9
commit bccd6efaff
393 changed files with 253 additions and 37 deletions

View File

@@ -0,0 +1,28 @@
<?php
namespace App\Entity\Attribut;
/**
* Entities which implement this interface can lock stuff on an optimistic base.
*
* @see https://www.doctrine-project.org/projects/doctrine-orm/en/2.6/reference/transactions-and-concurrency.html
* @see https://en.wikipedia.org/wiki/Optimistic_concurrency_control
*
* @author kevinfrantz
*/
interface VersionAttributInterface
{
/**
* Returns the revision version of the entity.
*
* @return int
*/
public function getVersion(): int;
/**
* Sets the revision version of the entity.
*
* @param int $version
*/
public function setVersion(int $version): void;
}