I am running 5.7.2.1 and trying to understand what section.entry-type is doing in the collection code.
'section' => ['page.oneColumn','page.twoColumn', 'news.default'], //section handle + entry type handle
At top we can specify the specific sections and entry-types.
->criteria(function(\craft\elements\db\EntryQuery $query) { return $query->section(['page','news']); }),
At bottom, the query runs based on the sections array.
I have found in the entries sent to Typesense, a section entry-type not specified in the top section array. Is this an error? or expected behavior?
Thanks!
I am running 5.7.2.1 and trying to understand what section.entry-type is doing in the collection code.
'section' => ['page.oneColumn','page.twoColumn', 'news.default'], //section handle + entry type handleAt top we can specify the specific sections and entry-types.
->criteria(function(\craft\elements\db\EntryQuery $query) { return $query->section(['page','news']); }),At bottom, the query runs based on the sections array.
I have found in the entries sent to Typesense, a section entry-type not specified in the top section array. Is this an error? or expected behavior?
Thanks!