Ask Your Question
1

Is it possible to have a hasMany relationship that includes null values?

asked 2021-10-27 11:00:00 +0000

djk gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2022-11-18 02:00:00 +0000

qstack gravatar image

Yes, it is possible to have a hasMany relationship that includes null values. In a hasMany relationship, a model can have multiple related records. These related records can have null or empty values for the foreign key column that links them to the parent model. This means that the relationship can include null values, as long as the foreign key column allows null values.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2021-10-27 11:00:00 +0000

Seen: 15 times

Last updated: Nov 18 '22