Skip to content

Commit 35d1e2a

Browse files
abnegateclaude
andcommitted
fix(mirror): forward the query value limit to both databases
Mirror hands every other piece of configuration to its source and destination, but setMaxQueryValues only ever reached the wrapper. Reads run against the source, so a caller that lowered the ceiling silently kept querying at the old one, which is how the relationship value-limit test found this on the Mirror lane alone. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
1 parent 86d6380 commit 35d1e2a

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

src/Database/Mirror.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,18 @@ public function setTenant(int|string|null $tenant): static
190190
return $this;
191191
}
192192

193+
/**
194+
* {@inheritdoc}
195+
*/
196+
public function setMaxQueryValues(int $max): self
197+
{
198+
parent::setMaxQueryValues($max);
199+
$this->source->setMaxQueryValues($max);
200+
$this->destination?->setMaxQueryValues($max);
201+
202+
return $this;
203+
}
204+
193205
/**
194206
* {@inheritdoc}
195207
*/

0 commit comments

Comments
 (0)