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
AFAICS the code first reads a JPA entity, then merges PATCH data with it, and then writes it all back to the DB.
But @ManyToOne is not being read unless $expand=* present.
So if nothing is in the PATCH data for those foreign keys then it end up writing NULLs to foreign keys and fail on NOT NULL constraints.
The text was updated successfully, but these errors were encountered:
AFAICS the code first reads a JPA entity, then merges
PATCH
data with it, and then writes it all back to the DB.But
@ManyToOne
is not being read unless$expand=*
present.So if nothing is in the
PATCH
data for those foreign keys then it end up writingNULLs
to foreign keys and fail onNOT NULL
constraints.The text was updated successfully, but these errors were encountered: