In the manual contains:

Moreover, there is no out-of-the-box way to save or load in-memory database content. But you can do this manyally - by traversing all the entities there.

Can you give a sample how to do this? (ps model contains some base classes and a couple of 1-1 / 1-n / n-n relations)


This thread was imported from our support forum. The original discussion may contain more detailed answer.

asked Dec 03 '09 at 22:02

Marco's gravatar image


One Answer:

Since today we've got a very similar request: viewtopic.php?f=56&t=5694, it seems it's time to implement full-featured serialization - currently we support only by-ref serialization of entities.

So I just created http://code.google.com/p/dataobjectsdot ... ail?id=514

Tests for existing serialization layer:

This must give some imagination of how this must work.

answered Dec 04 '09 at 17:33

Alex%20Yakunin's gravatar image

Alex Yakunin

Hmm, I see there is some level of support for by-value serialization - actually we were implementing both ways together, but AFAIK only by-ref is fully tested.

So let us check this - possibly only minor tweaks are needed there to make this work.

(Dec 04 '09 at 17:33) Alex Yakunin Alex%20Yakunin's gravatar image
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!
toggle preview


Once you sign in you will be able to subscribe for any updates here



Asked: Dec 03 '09 at 22:02

Seen: 2,517 times

Last updated: Dec 03 '09 at 22:02

powered by OSQA