I think these attrs_for_update lines are going to be a problem. I think the problem might be in some code I wrote though. I couldn't figure out how active_fedora does relationships so the stored_collection_id isn't really an attribute, it's a setter and getter that reads from a few places and calls add_relationship. Maybe a good option would be to override update_attributes? Perhaps we should discuss this tomorrow morning.