Move models to proper ProcessMaker Model namespace.
This commit is contained in:
committed by
Paula Quispe
parent
6b8065a98f
commit
9aec728509
19
workflow/engine/src/ProcessMaker/Model/User.php
Normal file
19
workflow/engine/src/ProcessMaker/Model/User.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
namespace ProcessMaker\Model;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class User extends Model
|
||||
{
|
||||
protected $table = "USERS";
|
||||
|
||||
/**
|
||||
* Returns the delegations this user has (all of them)
|
||||
*/
|
||||
public function delegations()
|
||||
{
|
||||
return $this->hasMany(Delegation::class, 'USR_ID', 'USR_ID');
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user