active_fedora
active_fedora copied to clipboard
Same object added multiple times to indirect container set
See test indirect_container_spec.rb (line 251) in branch indirect_container_is_set_in_memory.
3 tests added...
- add same object multiple times to indirect container in memory -- FAILS
- add same object multiple times to indirect container and save -- FAILS
- add same object multiple times to indirect container and save and reload -- PASSES
Was this related to rebuilding indirect containers as autosave associations?
In-memory operations and .save and .reload operations are expected to behave the same. If that is not possible due to technical issues, then an error should be raised that the attempted operation requires the objects to be saved. Auto-save is a separate issue. If auto-save is desired, a new issue needs to be created for that.