mongoid_auto_increment_id icon indicating copy to clipboard operation
mongoid_auto_increment_id copied to clipboard

has_many情况下保存父类记录无法将父类ID赋值给子类

Open jerryshen opened this issue 12 years ago • 1 comments

因为这段

    # hack id nil when Document.new
    def identify
      Identity.new(self).create
      nil
    end

导致has_many情况下保存父类记录无法将父类ID赋值给子类。

jerryshen avatar Jan 13 '13 13:01 jerryshen

https://github.com/mongoid/mongoid/issues/2173

jerryshen avatar Jan 13 '13 14:01 jerryshen