KMP PHP API Reference

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)

$modified

public DateTime|null $modified

Last modification timestamp

$_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


        
On this page

Search results