Delegations Factory

This commit is contained in:
dante
2019-04-25 21:15:43 -04:00
committed by Paula Quispe
parent 9768f07a1e
commit 1936f5cf3b
4 changed files with 65 additions and 0 deletions

View File

@@ -27,6 +27,13 @@ class Process extends Model
}
public function tasks()
{
return $this->hasMany(Task::class, 'PRO_UID', 'PRO_UID');
}
public function creator()
{
return $this->hasOne(User::class, 'PRO_CREATE_USER', 'USR_UID');