1 | <?php |
||
7 | class Transaction extends Base |
||
8 | { |
||
9 | |||
10 | protected $organizationPerspective = false; |
||
11 | |||
12 | protected $table = 'workflow_transactions'; |
||
13 | |||
14 | /** |
||
15 | * The attributes that are mass assignable. |
||
16 | * |
||
17 | * @var array |
||
18 | */ |
||
19 | protected $fillable = [ |
||
20 | 'name', |
||
21 | 'workflow_id', |
||
22 | 'stage_from_id', |
||
23 | 'stage_to_id', |
||
24 | ]; |
||
25 | |||
26 | |||
27 | protected $mappingProperties = array( |
||
28 | |||
29 | 'workflow_id' => [ |
||
30 | 'type' => 'string', |
||
31 | "analyzer" => "standard", |
||
32 | ], |
||
33 | 'stage_from_id' => [ |
||
34 | 'type' => 'string', |
||
35 | "analyzer" => "standard", |
||
36 | ], |
||
37 | 'stage_to_id' => [ |
||
38 | 'type' => 'string', |
||
39 | "analyzer" => "standard", |
||
40 | ], |
||
41 | ); |
||
42 | |||
43 | |||
44 | public function workflow() |
||
48 | |||
49 | public function stageFrom() |
||
53 | |||
54 | public function stageTo() |
||
58 | } |