Closed plukevdh closed 10 years ago
I'm looking into a fix for this, but my assumption right now is that Entity#load_attributes
does not take into account the deserialization of the attributes like #initialize
does.
Also doesn't appear to be deserializing DateTime for created_at
or updated_at
back from a string in either case.
Note, this is based off of the branch used for PR #13. Recommend pulling in that one first if desired.
Hm, this does cause a problem with deserializing properties with blocks...
I dislike this idea in the end. I do think serialization/deserialization may need to be made more consistent, but I'm not sure this is the solution...
Using two different methods to query for an object returns slightly different reinstantiations of a record:
Note the id, parent and merge parent are all strings using the
#find_many
method while#find_one
deserializes properly. The model definition is as follows: