Skip to content

Commit 6e2de99

Browse files
authored
Added note about caching a QueryResult (#5143)
1 parent 086dcda commit 6e2de99

File tree

1 file changed

+5
-0
lines changed
  • Documentation/ExtensionArchitecture/Extbase/Reference/Domain

1 file changed

+5
-0
lines changed

Documentation/ExtensionArchitecture/Extbase/Reference/Domain/Repository.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,11 @@ Example:
5858
5959
$this->blogRepository->findBy(['author' => 1, 'published' => true]);
6060
61+
.. attention::
62+
Saving a :php:`QueryResult` to a cache is not possible, if objects in the
63+
:php:`QueryResult` contain closures. This is typically the case for models
64+
which use lazy loading on properties.
65+
6166
.. _extbase-repository-find-by-custom:
6267

6368
Custom find methods

0 commit comments

Comments
 (0)