Revert "EntityDao::saveAllTypes() flushes entity manager"

This reverts commit 9ef0832b9844da7b2e6eb9d9bd62492afac014b2.