From 0a5e9da3d4c3b89799d86d121e7729fd4f4cd0fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Ba=C3=B1os=20Fari=C3=B1as?= Date: Thu, 27 Aug 2026 11:56:25 +0200 Subject: [PATCH] Update documentation for extra lazy associations Clarified conditions for using Collection methods with extra lazy associations that won't initialize the Collection. --- docs/en/tutorials/extra-lazy-associations.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/en/tutorials/extra-lazy-associations.rst b/docs/en/tutorials/extra-lazy-associations.rst index e6e6f14b527..3bf225cf65b 100644 --- a/docs/en/tutorials/extra-lazy-associations.rst +++ b/docs/en/tutorials/extra-lazy-associations.rst @@ -15,10 +15,10 @@ the first time its accessed. If you mark an association as extra lazy the follow can be called without triggering a full load of the collection: - ``Collection#contains($entity)`` -- ``Collection#containsKey($key)`` +- ``Collection#containsKey($key)`` only if the association includes an ``indexBy`` field. - ``Collection#count()`` - ``Collection#first()`` -- ``Collection#get($key)`` +- ``Collection#get($key)`` only if the association includes an ``indexBy`` field. - ``Collection#isEmpty()`` - ``Collection#slice($offset, $length = null)``