Skip to content

Commit cc1e612

Browse files
Add relation parent in version
1 parent 5c4be28 commit cc1e612

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

‎ProcessMaker/Models/ProcessVersion.php‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,4 +77,14 @@ public function process()
7777
{
7878
return $this->belongsTo(Process::class);
7979
}
80+
81+
/**
82+
* Get the associated screen
83+
*
84+
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
85+
*/
86+
public function parent()
87+
{
88+
return $this->belongsTo(Process::class, 'process_id', 'id');
89+
}
8090
}

0 commit comments

Comments
 (0)