forked from ProcessMaker/processmaker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathScriptVersion.php
More file actions
41 lines (32 loc) · 783 Bytes
/
ScriptVersion.php
File metadata and controls
41 lines (32 loc) · 783 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
namespace ProcessMaker\Models;
use Illuminate\Database\Eloquent\Model;
use ProcessMaker\Traits\HasCategories;
class ScriptVersion extends Model
{
use HasCategories;
const categoryClass = ScriptCategory::class;
protected $connection = 'processmaker';
/**
* Do not automatically set created_at
*/
const CREATED_AT = null;
/**
* Attributes that are not mass assignable.
*
* @var array $fillable
*/
protected $guarded = [
'id',
'updated_at',
];
/**
* Set multiple|single categories to the script
*
* @param string $value
*/
public function setScriptCategoryIdAttribute($value)
{
return $this->setMultipleCategories($value, 'script_category_id');
}
}