CoolCMS API

PageRouteRel extends PageRouteRel
in package

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

Attributes
#[Entity]
#[Table]
$name: 'cms_system_page_route_rel'
#[TableAlias]
'pageRouteRel'

Table of Contents

Properties

$pageId  : int
$routeId  : 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.
getPageId()  : int
getRouteId()  : int
setPageId()  : $this
setRouteId()  : $this
getTraitsRecursive()  : array<string, string>
Walks the trait list recursively and collects nested traits too.

Properties

$pageId

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

$routeId

protected int $routeId = 0
Attributes
#[Column]
$name: 'cms_system_routes_route_id'
$type: 'integer'
$options: ['unsigned' => true]
#[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 $pageId = 0 ][, int $routeId = 0 ]) : mixed
Parameters
$pageId : int = 0
$routeId : 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>

getRouteId()

public getRouteId() : int
Return values
int

setPageId()

public setPageId(int $pageId) : $this
Parameters
$pageId : int
Return values
$this

setRouteId()

public setRouteId(int $routeId) : $this
Parameters
$routeId : 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