PMCORE-2703 After to execute the convert-old-web-entries command the Dynaform is duplicated

This commit is contained in:
Roly Rudy Gutierrez Pinto
2021-02-03 17:19:03 -04:00
parent b1f07d6c85
commit 740577191e
2 changed files with 30 additions and 13 deletions

View File

@@ -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;
}
}