From 0ea8b77c7f0830f8850bd45be0123fe6f44f4e90 Mon Sep 17 00:00:00 2001 From: Madeorsk Date: Sat, 9 Nov 2024 10:20:43 +0100 Subject: [PATCH] Fix with array merge. --- src/Query/EntityQuery.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Query/EntityQuery.php b/src/Query/EntityQuery.php index 5f585ee..4446e07 100644 --- a/src/Query/EntityQuery.php +++ b/src/Query/EntityQuery.php @@ -324,7 +324,7 @@ class EntityQuery extends SelectQuery public function with(array $relations): static { // Normalize relations array and add them in the with array. - array_merge($this->with, EntityQuery::normalizeRelationsDefinition($relations)); + $this->with = array_merge($this->with, EntityQuery::normalizeRelationsDefinition($relations)); return $this; }