We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed1214f commit 8594ee1Copy full SHA for 8594ee1
src/Type/EntityQuery/EntityQueryType.php
@@ -17,14 +17,17 @@ public function hasAccessCheck(): bool
17
18
public function withAccessCheck(): self
19
{
20
- $type = clone $this;
+ $type = new self(
21
+ $this->getClassName(),
22
+ $this->getSubtractedType(),
23
+ $this->getClassReflection()
24
+ );
25
$type->hasAccessCheck = true;
-
26
return $type;
27
}
28
29
protected function describeAdditionalCacheKey(): string
30
- return $this->hasAccessCheck ? 'with-access-check' : '';
31
+ return $this->hasAccessCheck ? 'with-access-check' : 'without-access-check';
32
33
0 commit comments