On 06/29/2011 02:30 PM, David Zmick wrote:
Saving a dictionary that has references to other objects as keys results
in data loss in the dictionary.

Do all the tests pass in your image?  The test..

testDictionaryKeys
        | dad |
        dad := self manClass testPerson save.
        kid save.
        mom children: (Dictionary with: dad -> kid).
        mom save.
        self flushAndReload.
        self
                assert: (mom refreshed children at: dad refreshed )
                equals: kid refreshed

Should have already covered this scenario to ensure other records work as keys. #flushAndReload is the same process that happens during image startup. Could you possibly express your scenario as a failing test like above using the existing mock objects? If you can show me a failing test I'll get the problem resolved much quicker.

--
Ramon Leon
http://onsmalltalk.com

Reply via email to