I'm using Doctrine 2, and would like this ORM to auto flush()
the EntityManager before executing any SELECT
query, to ensure consistency at all times within the application (this application is abstracting a lot, and should not have any knowledge of the EntityManager, apart from inside the Repositories).
Is there an option to do that with Doctrine?
If not, any strategy to implement this easily?