PMCORE-2703 After to execute the convert-old-web-entries command the Dynaform is duplicated
This commit is contained in:
@@ -8,4 +8,18 @@ class Step extends Model
|
||||
{
|
||||
protected $table = "STEP";
|
||||
public $timestamps = false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get object step by process, task, object type and his Uid.
|
||||
*/
|
||||
public static function getByProcessTaskAndStepType($proUid, $tasUid, $stepTypeObj, $stepUidObj)
|
||||
{
|
||||
$step = self::where('PRO_UID', '=', $proUid)
|
||||
->where('TAS_UID', '=', $tasUid)
|
||||
->where('STEP_TYPE_OBJ', '=', $stepTypeObj)
|
||||
->where('STEP_UID_OBJ', '=', $stepUidObj)
|
||||
->get()
|
||||
->first();
|
||||
return $step;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user