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
I have a struct with 2 slices, they are interface types so although they save correctly they require a PropertyLoadSaver implementation to reconstruct them on load
Philio
changed the title
packagename: PropertyLoadSaver doesn't store __key__ of embedded entity
datastore: PropertyLoadSaver doesn't store __key__ of embedded entity
Jun 9, 2024
Client
Datastore
Environment
Linux
Go Environment
$ go version
$ go env
Code
I have a struct with 2 slices, they are interface types so although they save correctly they require a
PropertyLoadSaver
implementation to reconstruct them on loadExpected behavior
The key is returned by
datastore.SaveStruct(s)
(see debug screenshot below) so I would have expected it to be savedActual behavior
BoxSpec
is embedded in another entity, if I save without thePropertyLoadSaver
implementation the key gets saved:After adding
PropertyLoadSaver
implementation the key is returned bydatastore.SaveStruct(s)
but doesn't get saved in the database:Screenshots
Additional context
N/A
The text was updated successfully, but these errors were encountered: