Process the association fields

When writing a record, fill in the association fields.