You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When loading a belongs_to relationship the association code executes the query even if the foreign key is nil - I think we can safely assume that there isn't a record with a NULL primary key!
The text was updated successfully, but these errors were encountered:
The value is null. I can't say about other databases but I'm sure that MySQL doesn't allow NULL values in a primary key column. I suppose the belongs_to could be pointed to a non-primary key column that allows NULL values but I can't think of any use case for such a scenario.
When loading a belongs_to relationship the association code executes the query even if the foreign key is nil - I think we can safely assume that there isn't a record with a NULL primary key!
The text was updated successfully, but these errors were encountered: