May need access to entity manager outside scope.