Skip to content

Commit 9c6f805

Browse files
committed
relation
1 parent 41ddc94 commit 9c6f805

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/Models/Traits/RelateToSpace.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ public function setSpaceKey($key){
1414
public function relation($parent=null):void{
1515
parent::relation($parent);
1616
$this->space_key = null;
17-
$this->space_key = $this->space_key ?? $parent?->spaceKey ?? null;
17+
$this->space_key = $this->spaceKey ?? $parent->space_key ?? $parent?->spaceKey ?? null;
1818
}
1919
}

0 commit comments

Comments
 (0)