Changeset [d4ec6c90871f47bddd0cef3e6ba43b32c1117d62] by Dan Kubb

October 22nd, 2009 @ 09:22 PM

Fixed stack-too deep error thrown by saving a circular reference

  • This solution involves tracking which resources have been saved in a specific session, and not resaving them. This will require further refactoring since I would like to remove the "resources" shared state and perhaps track if an object is saved in an ivar.

[#1094 state:resolved] http://github.com/datamapper/dm-core/commit/d4ec6c90871f47bddd0cef3...

Committed by Dan Kubb

  • M lib/dm-core/associations/many_to_many.rb
  • M lib/dm-core/associations/one_to_many.rb
  • M lib/dm-core/collection.rb
  • M lib/dm-core/resource.rb
  • M spec/public/shared/resource_shared_spec.rb
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 »