ID-0 Fixed bug: caching Doctrine2 entity causes exceptions during edit and delete actions.