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 3d0b509 commit 8893ecfCopy full SHA for 8893ecf
src/Schema/Field/Relationship.php
@@ -64,6 +64,15 @@ public function withoutLinkage(): static
64
return $this;
65
}
66
67
+ public function getValue(Context $context): mixed
68
+ {
69
+ if ($context->include === null && !$this->linkage) {
70
+ return null;
71
+ }
72
+
73
+ return parent::getValue($context);
74
75
76
protected function findResourceForIdentifier(array $identifier, Context $context): mixed
77
{
78
if (!isset($identifier['type'])) {
0 commit comments