21 lines
370 B
PHP
21 lines
370 B
PHP
|
|
<?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');
|
||
|
|
}
|
||
|
|
}
|