Tag Archives: Concurrency

Symfony Doctrine Concurrency

I used Optimistic-Locking here you can find the documentation: http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/transactions-and-concurrency.html You can add in your entity the field version. Automatically doctrine will manage concurrency throwing an Exceprion. use Doctrine\ORM\Mapping as ORM; … /** * @var int * * @ORM\Column(name=”version”, type=”integer”, … Continue reading

Posted in Symfony | Tagged , , | Leave a comment