Type: New Feature
Affects Version/s: Git Master
Fix Version/s: None
Security Level: All
When doing `persist()` and then `flush()` the statements are not accessible anymore after the operation is done.
The EntityManager uses an EntityPersister. When looking at the BasicEntityPersister->executeInserts() a new statement is created but it's not saved as part of another object.
When having access to the statements afterwards, all the following methods would be available:
Most interesting are rowCount and error related methods.