This release provides fixes for:
 - a regression in parsing of DQL with aggregate functions as arguments in other functions,
 - pessimistic locking without running transaction,
 - using non-deprecated Lexer and Inflector.

- Total issues resolved: **3**
- Total pull requests resolved: **7**
- Total contributors: **5**

Bug:
 - [7296: Fix #7286: StringPrimary no longer accepts aggregate functions as argument](https://github.com/doctrine/doctrine2/pull/7296) thanks to @Majkl578 and @NothingWeAre
 - [7291: [2.6] Fix for #7068: EntityManager::find() with pessimistic lock should check for transaction](https://github.com/doctrine/doctrine2/pull/7291) thanks to @Majkl578 and @madwizard-thomas
 - [7274: Use non-deprecated version of Lexer and Inflector](https://github.com/doctrine/doctrine2/pull/7274) thanks to @Majkl578
 - [7190: Fix wrong type in phpdoc of `Doctrine\ORM\Id\AbstractIdGenerator#generate()`](https://github.com/doctrine/doctrine2/pull/7190) thanks to @Tobion
 - [7146: [XML] Fix default value of one-to-many order-by to ASC](https://github.com/doctrine/doctrine2/pull/7146) thanks to @Awkan

Improvement:
 - [7290: Fix compatibility with DBAL 2.8 (doctrine/dbal#3157)](https://github.com/doctrine/doctrine2/pull/7290) thanks to @Majkl578

Documentation:
 - [7276: Add UPGRADE note for EntityRepository::count()](https://github.com/doctrine/doctrine2/pull/7276) thanks to @Majkl578