如果有:embeds_many :foos
。
是:dependent => :destroy
必需的吗?或者,如果我销毁父元素。所有相应的foos
将被自动删除?
我试图检查Foo
控制台,但得到:
Mongoid::Errors::InvalidCollection: Access to the collection for Foo is not allowed since it is an embedded document, please access a collection from the root document.