Skip to content

Conversation

@i-just
Copy link
Contributor

@i-just i-just commented Jan 9, 2026

Description

In v3, we briefly dropped support for passing an array of entry types into the type param. It was then re-added in 3.7.40 via 54a3959 (related issue: #11057).

However, up until and including v4, the Sections->getEntryTypesByHandle() method, which is used in the normalisation of the EntryQuery->type() param, only returns an array, which means that using it with anything other than an EntryType model always triggers a call to the database.

This PR takes into consideration that Sections->getEntryTypesByHandle() can return an array of entry types, and it does lower the number of DB queries, but I’m not 100% sure if it’s worth the extra code complexity.

This issue only affects v4, as in v5, entry type handles are globally unique.

Related issues

#18223

@i-just i-just requested a review from brandonkelly January 9, 2026 11:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants