Skip to content

Commit

Permalink
DOC Update eagerloading docs to explicitly say no relation filter (#376)
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli committed Oct 17, 2023
1 parent 7e4e4b8 commit 36f9313
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion en/02_Developer_Guides/00_Model/02_Relations.md
Expand Up @@ -709,7 +709,7 @@ Eager loading is only intended to be used in read-only scenarios such as when ou

Note that filtering or sorting an `EagerLoadedList` will be done in PHP rather than as part of the database query, since we have already loaded all its relevant data into memory.

Note also that `EagerLoadedList` can't currently filter or sort by fields on relations using dot syntax (e.g. `sort('MySubRelation.Title')` won't work).
Note also that `EagerLoadedList` can't filter or sort by fields on relations using dot notation (e.g. `sort('MySubRelation.Title')` won't work).
[/notice]

## Cascading deletions
Expand Down

0 comments on commit 36f9313

Please sign in to comment.