Skip to content

Commit 1f3d320

Browse files
committed
JT tech review comment 2
1 parent 9d835fd commit 1f3d320

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/fundamentals/connection/connection-options.txt

+7
Original file line numberDiff line numberDiff line change
@@ -387,3 +387,10 @@ perform either of the following actions:
387387
.. code-block:: php
388388

389389
DB::connection('mongodb')->setRenameEmbeddedIdField(false);
390+
391+
.. important::
392+
393+
We recommend using this option only to provide backwards
394+
compatibility with existing document schemas. In new projects,
395+
avoid using ``id`` for field names in embedded documents so that
396+
you can maintain {+odm-long+}'s default behavior.

0 commit comments

Comments
 (0)