RolesPermission
extends BaseEntity
in package
RolesPermission Entity
Table of Contents
Properties
- $branch_id : int|null
- $created : DateTime
- $created_by : int
- $id : int
- $modified : DateTime|null
- $permission : Permission
- $permission_id : int
- $role : Role
- $role_id : int
- $_accessible : array<string, bool>
- Fields that can be mass assigned using newEntity() or patchEntity().
Methods
- getBranchId() : int|null
- Get the branch ID for authorization checks.
Properties
$branch_id
public
int|null
$branch_id
Associated branch ID (when applicable)
$created
public
DateTime
$created
$created_by
public
int
$created_by
$id
public
int
$id
$modified
public
DateTime|null
$modified
Last modification timestamp
$permission
public
Permission
$permission
$permission_id
public
int
$permission_id
$role
public
Role
$role
$role_id
public
int
$role_id
$_accessible
Fields that can be mass assigned using newEntity() or patchEntity().
protected
array<string, bool>
$_accessible
= ['permission_id' => true, 'role_id' => true, 'created' => true, 'created_by' => true, 'permission' => true, 'role' => true]
Note that when '' is set to true, this allows all unspecified fields to be mass assigned. For security purposes, it is advised to set '' to false (or remove it), and explicitly make individual fields accessible as needed.
Methods
getBranchId()
Get the branch ID for authorization checks.
public
getBranchId() : int|null
Child classes should override for complex branch relationships.
Return values
int|null —The branch ID, or null if no association