CoolCMS API

UserGroupRel extends UserGroupRel
in package

Api leaf for `cms_system_user_group_relations`; columns and the composite key live in the Shared base.

Attributes
#[Entity]
#[Table]
$name: 'cms_system_user_group_relations'
#[TableAlias]
'userGroupRel'

Table of Contents

Properties

$groupId  : int
$userId  : int

Methods

__construct()  : mixed
The composite key is declared here, not redeclared in the Api leaf: a leaf property with its own `#[ORM\Column]` duplicates the inherited column mapping and the metadata fail to load.
callInitMethods()  : void
Calls `init{TraitName}()` for every used trait that defines such a method.
getAllTraits()  : array<string, string>
Returns all traits the class uses, including those used by parent classes and nested traits.
getGroupId()  : int
getUserId()  : int
setGroupId()  : $this
setUserId()  : $this
getTraitsRecursive()  : array<string, string>
Walks the trait list recursively and collects nested traits too.

Properties

$groupId

protected int $groupId = 0
Attributes
#[Column]
$name: 'cms_system_user_groups_group_id'
$type: 'integer'
$options: ['unsigned' => true]
#[Id]

$userId

protected int $userId = 0
Attributes
#[Column]
$name: 'cms_system_users_user_id'
$type: 'integer'
$options: ['unsigned' => true]
#[ExternalReadonly]
#[Id]

Methods

__construct()

The composite key is declared here, not redeclared in the Api leaf: a leaf property with its own `#[ORM\Column]` duplicates the inherited column mapping and the metadata fail to load.

public __construct([int $groupId = 0 ][, int $userId = 0 ]) : mixed
Parameters
$groupId : int = 0
$userId : int = 0

callInitMethods()

Calls `init{TraitName}()` for every used trait that defines such a method.

public callInitMethods() : void

getAllTraits()

Returns all traits the class uses, including those used by parent classes and nested traits.

public getAllTraits() : array<string, string>
Return values
array<string, string>

getGroupId()

public getGroupId() : int
Return values
int

setGroupId()

public setGroupId(int $groupId) : $this
Parameters
$groupId : int
Return values
$this

setUserId()

public setUserId(int $userId) : $this
Parameters
$userId : int
Return values
$this

getTraitsRecursive()

Walks the trait list recursively and collects nested traits too.

private static getTraitsRecursive(array<string, string> $traits) : array<string, string>
Parameters
$traits : array<string, string>
Return values
array<string, string>
On this page

Search results