It's a regression b'cause it's work correctly in 2.3.4.
[GH-916] [DDC-2931] testcase to reproduce Jira 2931
Deyine Jiddou any example?
Sorry for duplication. I've create a pull request test case to reproduce this bug.
The test case work correctly on doctrine 2.3.4.
I hope it enough as a description.