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; }