code: def translate_association(assoc)
        attribute = attribute_lookup(assoc)
        return unless attribute
  
        # Make sure we properly handle destroyed values by forcing them to an
        # empty association.  We keep their state up to this point because the
        # caller may be using the prior value for something.
        if assoc.marked_for_destruction?
          assoc = @form.create_association
        end
  
        add_association_to_attribute_map(attribute, assoc)
      end
docs: Maps an association to the attribute its data will be tied