I'm just experiencing a very weird issue with Symfony2 and Doctrine ORM. It stopped to insert data in one of my tables, no changes were made there in last few months really, but it started to fail, although there's no Doctrine exception or anything, the profiler shows the insert is performed just right. The entity receives ID 0 and there's no record in the database.
It's just a basic persist + flush combination on mapped entity. Yes, the entity is mapped (checked in profiler as well).
I'm wondering if there's any case where Doctrine will not throw an exception despite query not being executed / does not succeed? I have no idea where to look for it. I did check all possible configurations. There's no exception thrown. It all looks perfectly fine, the way it should, but data is not inserted.
I did try to execute the same query directly using command line and it works just fine.
I am using Symfony 2.8, Doctrine version is 2.7.2 for Doctrine\Common, Doctrine\ORM - 2.5.6 (according to composer.lock)
EDIT
I just started getting very weird behaviour from Doctrine all over the place. Few queries return no results when executed from Doctrine ORM, but does work fine when executed directly.