# File lib/dm-core/collection.rb, line 270 def replace(other) if loaded? each { |resource| orphan_resource(resource) } end super other.each { |resource| relate_resource(resource) } self end