You are not logged in.
Hi,
Mormot 1 (latest), and D11 ent, win32
This was hidden ... and I don't know if this is normal.
We have object of TPersistent that is part of main object TPersistent:
TMainObj=clas(TPersistent)
...
published
mySubObject:TMySubObject...
...
end;
We normally use json to store objects and retreive them.
property in question:
TMySubObject
published
property PropAlwaysRestored: TDatetime read FPropAlwaysRestored; // <== FPropAlwaysRestored gets updated !!!??
I checked the JSON file value of property. And after JSON2Object this value is restored in object.
Thank you,
Vojko Cendak
Offline
The RTTI part of mORMot is indeed using the "read" field to unserialize the property.
This is a feature, because it makes serialization working even if normal the property read-only from pascal code.
We did this since early version of mORMot 1 years ago.
Offline
thank you,
Good to know
Offline