# File lib/dm-core/query.rb, line 111
    def key_property_indexes(repository)
      if (key_property_indexes = model.key(repository.name).map { |property| fields.index(property) }).all?
        key_property_indexes
      end
    end