Recras/doctrine1 — pull request #2 by timmipetit (2014-07-10 08:49:25+00:00)
Title: Use manaual sql-transaction to prevent deadlocks

Also select the forUpdate on the base table, instead of the version
table. Using the version table will result in more deadlocks (due to
inserts instead of updates).