-
Notifications
You must be signed in to change notification settings - Fork 91
Open
Labels
wontfixThis will not be worked onThis will not be worked on
Description
I try to load a page and the associated taxonomies terms of it but the problem is that extra queries are being done.
I am using Statamic multisite.
I would like to be able to eager load only those associated with that specific entry.
So I have a tags taxonomy and I want something like:
$queryBuilder = Entry::with(['tags'])->query()
->where('collection','pages')
->where('slug', 'my-page')
->where('site', 'en');
->where('published', true)->get();
Many thanks
helloiamlukas and clementmas
Metadata
Metadata
Assignees
Labels
wontfixThis will not be worked onThis will not be worked on