You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We've heard about this use-case before but it didn't seem like a core MotionModel issue because it's a deserialization from external source task. The best way to accomplish this is to parse and stuff the data yourself. You may want to look at the Formotion code to see how creating objects from hashes is accomplished.
You are better able to know the relationships in your own code that MotionModel is at automagically inferring it.
If you come up with a generalized solution (maybe a recursion), that would be a really cool addition to MotionModel.
Given the following models/relationship -
And this user hash:
When I do the following
User.new(user_hash).save
the Address.count is still 0 ??The text was updated successfully, but these errors were encountered: