Update documentation for extra lazy associations - #12584
Conversation
Clarified conditions for using Collection methods with extra lazy associations that won't initialize the Collection.
🤔 did you mean to write "only if"? Can you show me the tests you ran and the outcome, so that I understand better what you mean? |
I was reading this documentation page and comparing how The reason I submitted this MR is because I am assuming this is expected behavior but it was just not clear (to me) when reading the docs that this is how |
Yeah, I think I said the opposite of what I meant to say... Having an |
|
I think it's expected behavior. |
Clarified conditions for using Collection methods with extra lazy associations that won't initialize the Collection.
I was running some manual tests locally and it seems like
EXTRA_LAZYcollections get initialized when callingCollection::get()andCollection::containsKey()unless anindexByfield is specified. This wasn't clear in the docs.