# File lib/dm-core/repository.rb, line 108
    def scope
      context = Repository.context

      context << self

      begin
        yield self
      ensure
        context.pop
      end
    end