Skip to content

Commit 85ab93c

Browse files
committed
Add Relationship::notIncludable()
1 parent 18e7e07 commit 85ab93c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/Schema/Field/Relationship.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,16 @@ public function includable(): static
4646
return $this;
4747
}
4848

49+
/**
50+
* Don't allow this relationship to be included.
51+
*/
52+
public function notIncludable(): static
53+
{
54+
$this->includable = false;
55+
56+
return $this;
57+
}
58+
4959
/**
5060
* Include linkage for this relationship.
5161
*/

0 commit comments

Comments
 (0)