Answer the question
In order to leave comments, you need to log in
Does hasOne affect model creation?
Let's say there is a users table, it has a table of phone numbers, where there is no default value.
The question of such a plan, when creating a user through the model, is the phone table not affected? After all, when registering, there is no default phone number.
As far as I can see, creation proceeds as usual, while hasOne only works for fetches. However, I ask experts for reinsurance. Thanks in advance for your replies.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question