# File lib/dm-core/associations/many_to_one.rb, line 54 def replace(parent) @parent = parent @relationship.attach_parent(@child, @parent) self end