Getting a reflection panic when trying to save a record with a belongs_to
pointer
#298
Labels
bug
Something isn't working
belongs_to
pointer
#298
Description
We are trying to update from
4.8.7
to4.9.0
.I have a model that uses pointers for relational fields that are optional (nullable.) For example:
Full source here
Now, when trying to save this model with a null value in the
ShippingOffice
field, I'm getting a panic in the reflection package:It looks like some work was done in/around the
belongs_to_association.go
code recently: #199 that may be related.Happy to provide more details if necessary.
The text was updated successfully, but these errors were encountered: