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 9c6f805 commit 9085a7dCopy full SHA for 9085a7d
src/lib/Models/Traits/RelateToSpace.php
@@ -4,16 +4,17 @@
4
5
trait RelateToSpace {
6
protected ?string $space_key;
7
- public function getSpaceKey():string{
+ public function getSpaceKey (): ?string {
8
return $this->space_key;
9
}
10
- public function setSpaceKey($key){
+
11
+ public function setSpaceKey ( $key ) {
12
$this->space_key = $key;
13
14
15
public function relation($parent=null):void{
16
parent::relation($parent);
17
$this->space_key = null;
- $this->space_key = $this->spaceKey ?? $parent->space_key ?? $parent?->spaceKey ?? null;
18
+ $this->space_key = $this->spaceKey ?? $parent?->getSpaceKey() ?? $parent?->spaceKey ?? null;
19
20
0 commit comments