jnunemaker/mongomapper — Issue #360: :dependent => :destroy, the parent is destroyed but the children are neither nullified nor destroyed
Author: marwal
Created: 2011-12-09 20:56:20+00:00
State: open

I'm using mongomapper and everything works but :dependent => :destroy.

class Parent
include MongoMapper::Document

many :children, :dependent => :destroy (I tried with has_many also)
end

class Child
include MongoMapper::Document

belongs_to :parent
end

The parent is destroyed but the children are neither nullyfied nor destroyed.

ruby: 1.9.3, mongodb: 1.8.2 (mongohq), mongomapper: 0.10.1

Thanks for you help.