Attach with relationship showing different search option label

I have table A with name that has one-to-one relationship with table B (has a_id and no name). and table C has many-to-many relationship with table B. How do i attach data from table B to table C by searching using name from table A? I know how to use a_id from table B but its weird to attach using id.
Was this page helpful?