hasOne(Point::class, 'id', 'last_child_review_point_id'); } public function lastChildReviewNote() { return $this->hasOne(Note::class, 'id', 'last_child_review_point_scoped_note_id'); } public function lastChildPlan() { return $this->hasOne(Point::class, 'id', 'last_child_review_point_id'); } }