in reply to Store only object data but not the whole class

If performance is needed you can be interested in Sereal and to this thread: Storing state of execution

L*

There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.