| Total Complexity | 2 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 8 | class TestBinaryRole extends Model |
||
| 9 | { |
||
| 10 | |||
| 11 | use HasCompositePrimaryKey; |
||
|
|
|||
| 12 | |||
| 13 | protected $table = 'binary_roles'; |
||
| 14 | |||
| 15 | public $timestamps = false; |
||
| 16 | |||
| 17 | protected $primaryKey = 'role_id'; |
||
| 18 | |||
| 19 | protected $binaryColumns = [ |
||
| 20 | 'role_id', |
||
| 21 | ]; |
||
| 22 | |||
| 23 | protected $fillable = [ |
||
| 24 | 'name', |
||
| 25 | ]; |
||
| 26 | |||
| 27 | public function users(){ |
||
| 28 | return $this->hasMany(TestBinaryUser::class, 'binary_role_id', 'role_id'); |
||
| 29 | } |
||
| 30 | |||
| 31 | public function hex_users(){ |
||
| 33 | } |
||
| 34 | |||
| 36 |