Create/Update Parent relation when Create/Update child relational model in Yii2

I have a User model (name, username, password,…) and a Customer model which has a relation 1 to 1 with User model, this model is used to store (firstName, lastName, email, …).

I want to let customers to create their accounts via registration process, where they are asked to provide (First Name, Last Name, email, password, …)

So, it is clear that the registration process must create a User account first (using, First name and last name as Name, email as username, and the password). Then the Customer account can be created.

Even though, if the customer wants to change his name later, we must update the the field Name in the User account…

What is the best way to achieve this in Yii2??