This commit is contained in:
Roly Rudy Gutierrez Pinto
2019-06-06 16:43:42 -04:00
parent 0e6e38a48d
commit f3c81598cb
5 changed files with 407 additions and 12 deletions

View File

@@ -35,6 +35,14 @@ class ListUnassigned extends Model
return $this->belongsTo(Process::class, 'PRO_ID', 'PRO_ID');
}
/**
* Return the user this belongs to
*/
public function previousUser()
{
return $this->belongsTo(User::class, 'DEL_PREVIOUS_USR_UID', 'USR_UID');
}
/**
* Scope a query to only include specific tasks
*
@@ -93,7 +101,7 @@ class ListUnassigned extends Model
* @param array $filters
*
* @return array
*/
*/
public static function doCount($userUid, $filters = [])
{
$list = new PropelListUnassigned();
@@ -155,4 +163,3 @@ class ListUnassigned extends Model
return $result;
}
}