Move models to proper ProcessMaker Model namespace.
This commit is contained in:
committed by
Paula Quispe
parent
6b8065a98f
commit
9aec728509
20
workflow/engine/src/ProcessMaker/Model/Task.php
Normal file
20
workflow/engine/src/ProcessMaker/Model/Task.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace ProcessMaker\Model;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Task extends Model
|
||||
{
|
||||
protected $table = 'TASK';
|
||||
|
||||
public function process()
|
||||
{
|
||||
return $this->belongsTo(Process::class, 'PRO_UID', 'PRO_UID');
|
||||
}
|
||||
|
||||
public function delegations()
|
||||
{
|
||||
return $this->hasMany(Delegation::class, 'TAS_ID', 'TAS_ID');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user