File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -834,8 +834,10 @@ It is possible to omit the default entirely:
834834
835835If the default on ``_id`` is omitted, and no ``_id`` value is provided by
836836your application, Mongoid will persist the document without the ``_id``
837- value and one will be assigned by the server. However, Mongoid will
838- not automatically retrieve this value when the document is persisted - you
837+ value. In this case, if the document is a top-level document, an ``_id``
838+ value will be assigned by the server; if the document is an embedded document,
839+ no ``_id`` value will be assigned. Mongoid will not automatically retrieve
840+ this value, if assigned, when the document is persisted - you
839841must obtain the persisted value (and the complete persisted document) using
840842other means:
841843
You can’t perform that action at this time.
0 commit comments