Fix with array merge.

This commit is contained in:
Madeorsk 2024-11-09 10:20:43 +01:00
parent 136a6702f8
commit 0ea8b77c7f
Signed by: Madeorsk
GPG key ID: 677E51CA765BB79F

View file

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