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 66fd660 commit 377f0bdCopy full SHA for 377f0bd
src/lib/Models/Traits/RelateToComment.php
@@ -12,4 +12,9 @@ trait RelateToComment {
12
public function getCommentId (): ?int {
13
return $this->commentId;
14
}
15
+ public function relation($parent=null):void{
16
+ parent::relation($parent);
17
+ $this->commentId = $parent->commentId ?? $parent->id ?? null;
18
+ }
19
+
20
0 commit comments