#745 hold
geemus (Wesley Beary)

resources fail to load associations after _dump/_load

Reported by geemus (Wesley Beary) | January 5th, 2009 @ 06:58 PM

Resources with working associations fail to load their associations after they have been dumped/loaded. With an error akin to:

/Library/Ruby/Gems/1.8/gems/dm-core-0.9.9/lib/dm-core/associations/relationship.rb:106:in send': undefined methodanimals_association' for nil:NilClass (NoMethodError)

It would appear (to me) to be an error with the identity map on the repository of the resources after _load (which is an empty hash). This would appear to cause issues with child_key and parent_key lookups. The attached stand-alone script demonstrates the problem (and difference in repository identity_maps).

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »