I think you need to check if a restaurant post with the same title exists or not (I believe the restaurant and supplier name are unique ). If it does, then check if a supplier post with the same title exists or not. If the supplier exists, get the ID and update the relationship. If not, create a new supplier first.
I hope this makes sense 🙂
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users