Use Doctrine manager to enable reset if required

Patch by @bjcullinan - fixes #12