Updated to use entity manager resolvers.