From 553606eef59d294b47009fd853eeb3784083c7fd Mon Sep 17 00:00:00 2001 From: Ryan Mitchell Date: Wed, 7 Sep 2022 14:14:04 +0100 Subject: [PATCH] Prevent eloquent eager loading relationships --- src/Entries/EntryQueryBuilder.php | 5 +++++ src/Taxonomies/TermQueryBuilder.php | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/src/Entries/EntryQueryBuilder.php b/src/Entries/EntryQueryBuilder.php index 8e94f2b0..bff3db1a 100644 --- a/src/Entries/EntryQueryBuilder.php +++ b/src/Entries/EntryQueryBuilder.php @@ -76,4 +76,9 @@ public function count() return parent::count(); } + + public function with($relations, $callback = null) + { + return $this; + } } diff --git a/src/Taxonomies/TermQueryBuilder.php b/src/Taxonomies/TermQueryBuilder.php index 32a563be..f1d45b2a 100644 --- a/src/Taxonomies/TermQueryBuilder.php +++ b/src/Taxonomies/TermQueryBuilder.php @@ -254,4 +254,9 @@ private function applyCollectionAndTaxonomyWheres() } } } + + public function with($relations, $callback = null) + { + return $this; + } }