Re: Using SandstoneDB for persistance. Getting error.
Posted by
Ramon Leon-5 on
Jul 11, 2017; 6:34pm
URL: https://forum.world.st/Using-SandstoneDB-for-persistance-Getting-error-tp4954270p4954398.html
On 07/11/2017 10:05 AM, sergio ruiz wrote:
> Oh! i forgot to mention.. this method belongs to Order..
>
> so that part is working just fine..
Doesn't matter where the method is, your state machine clearly has
blocks stored as instance variables and you're trying to save the state
machine as part of the Order; SandstoneDb doesn't support saving blocks.
I'd try what Dennis Suggested and store message sends rather than blocks
for the guarded method, then it might save fine. Inspect the state
machine, any use of blocks has to be removed/changed to message sends in
order for it to be persistable by SandstoneDb.
--
Ramon Leon
http://onsmalltalk.com