ComponentBlockRel
extends ComponentBlockRel
in package
Api leaf for `cms_system_componet_block_relations`; columns and the composite key live in the Shared base.
Attributes
- #[Entity]
- #[Table]
- $name: 'cms_system_componet_block_relations'
- #[TableAlias]
- 'componentBlockRel'
Table of Contents
Properties
- $blockId : int
- $componentId : 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.
- getBlockId() : int
- getComponentId() : int
- setBlockId() : $this
- setComponentId() : $this
- getTraitsRecursive() : array<string, string>
- Walks the trait list recursively and collects nested traits too.
Properties
$blockId
protected
int
$blockId
= 0
Attributes
- #[Column]
- $name: 'cms_system_component_blocks_block_id'
- $type: 'integer'
- #[Id]
$componentId
protected
int
$componentId
= 0
Attributes
- #[Column]
- $name: 'cms_system_components_component_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 $componentId = 0 ][, int $blockId = 0 ]) : mixed
Parameters
- $componentId : int = 0
- $blockId : 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>getBlockId()
public
getBlockId() : int
Return values
intgetComponentId()
public
getComponentId() : int
Return values
intsetBlockId()
public
setBlockId(int $blockId) : $this
Parameters
- $blockId : int
Return values
$thissetComponentId()
public
setComponentId(int $componentId) : $this
Parameters
- $componentId : int
Return values
$thisgetTraitsRecursive()
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>