Skip to content

Commit 68b08e8

Browse files
committed
Update documentation
1 parent b4022ab commit 68b08e8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/en/cookbook/lookup-reference.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ need the referenced documents, you can use the ``$lookup`` stage in MongoDB's
1414
aggregation pipeline. It's similar to a SQL join, without duplication of data in
1515
the result set when there is many references to load.
1616

17+
.. note::
18+
19+
Lazy loading of references only occurs when accessing an uninitialized mapped property.
20+
If you access a property that is not mapped in Doctrine, that will not trigger
21+
loading of the referenced document.
22+
1723
Example setup
1824
-------------
1925

0 commit comments

Comments
 (0)