Support a Doctrine manager registry being passed into the Generator
Explicitly flush only the document that is being persisted, and do not queue embedded documents for persistence.