2019-06-28 15:20:51 -04:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace ProcessMaker\Model;
|
|
|
|
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
|
|
|
|
|
|
class ProcessVariables extends Model
|
|
|
|
|
{
|
|
|
|
|
// Set our table name
|
|
|
|
|
protected $table = 'PROCESS_VARIABLES';
|
|
|
|
|
// No timestamps
|
|
|
|
|
public $timestamps = false;
|
|
|
|
|
//primary key
|
|
|
|
|
protected $primaryKey = 'VAR_UID';
|
2020-02-12 18:02:29 -04:00
|
|
|
public $incrementing = false;
|
2019-06-28 15:20:51 -04:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Scope a query to filter an specific process
|
|
|
|
|
*
|
|
|
|
|
* @param \Illuminate\Database\Eloquent\Builder $query
|
|
|
|
|
* @param string $columns
|
|
|
|
|
* @return \Illuminate\Database\Eloquent\Builder
|
|
|
|
|
*/
|
|
|
|
|
public function scopeProcess($query, string $proUID)
|
|
|
|
|
{
|
|
|
|
|
return $query->where('PRJ_UID', $proUID);
|
|
|
|
|
}
|
|
|
|
|
}
|