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
gorma doesn’t make you enter all the fields
RendersTo() and BuildsFrom() read the fields in the payload and media types
and add those to your model
but if you already have an “id” field, maybe gorma doesn’t mark it as a PK
I can see how this would happen
BuildsFrom() is the only one that adds fields
RendersTo() causes conversion funcs to be created, but doesn’t add fields
so if there’s no “id” in your Payload you wouldn’t get an id in the model, and you’[d have to add it manually
it’s a bug
The text was updated successfully, but these errors were encountered:
From a slack chat with @bketelsen
gorma doesn’t make you enter all the fields
RendersTo() and BuildsFrom() read the fields in the payload and media types
and add those to your model
but if you already have an “id” field, maybe gorma doesn’t mark it as a PK
I can see how this would happen
BuildsFrom() is the only one that adds fields
RendersTo() causes conversion funcs to be created, but doesn’t add fields
so if there’s no “id” in your Payload you wouldn’t get an id in the model, and you’[d have to add it manually
it’s a bug
The text was updated successfully, but these errors were encountered: