Return Listing in getChildren methods #8439
passioneight
started this conversation in
Ideas
Replies: 1 comment 4 replies
-
@passioneight how about we add a default param? something like |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The line
$this->children[$cacheKey] = $list->load();
loads the complete list. Seems like this should be done only when needed, not whengetChildren
is called.Returning the
Listing
instead would further allow for more flexibility; one could:Listing
s conditions orCurrently implemented code from the link above:
Suggested changes:
What's your take on this?
Beta Was this translation helpful? Give feedback.
All reactions