added helper functions to App so that consumers of the plugin don't need to interact with doctrine.