Fix with array merge.
This commit is contained in:
parent
136a6702f8
commit
0ea8b77c7f
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue