CoolCMS API

InvoicePdfTemplateVariantRel extends BaseEntity
in package

AbstractYes

orphaned: no repository or manager uses it; replaced by the Invoicer matrix PdfTemplateVariant x seller/productType/userType/paymentRegion. Its legacy FK columns are dead. The entity and its Api twin can be deleted once cms_system_invoice_pdf_template_variant_relations is confirmed unused.

Attributes
#[MappedSuperclass]
#[TableAlias]
$alias: 'invoicePdfTemplateVariantRel'

Table of Contents

Properties

$invoiceTypeId  : int
$paymentRegionId  : int
$pdfTemplateVariantId  : int|null
$productTypeId  : int
$userTypeId  : 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.
getInvoiceTypeId()  : int
getPaymentRegionId()  : int
getPdfTemplateVariantId()  : int|null
getProductTypeId()  : int
getUserTypeId()  : int
setInvoiceTypeId()  : $this
setPaymentRegionId()  : $this
setPdfTemplateVariantId()  : $this
setProductTypeId()  : $this
setUserTypeId()  : $this
getTraitsRecursive()  : array<string, string>
Walks the trait list recursively and collects nested traits too.

Properties

$invoiceTypeId

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

$paymentRegionId

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

$pdfTemplateVariantId

protected int|null $pdfTemplateVariantId = null
Attributes
#[Column]
$name: 'cms_system_pdf_template_variants_pdf_template_variant_id'
$type: 'integer'
$nullable: true
$options: ['unsigned' => true]

$productTypeId

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

$userTypeId

protected int $userTypeId = 0
Attributes
#[Column]
$name: 'cms_system_user_types_user_type_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 $productTypeId = 0 ][, int $paymentRegionId = 0 ][, int $userTypeId = 0 ][, int $invoiceTypeId = 0 ][, int|null $pdfTemplateVariantId = null ]) : mixed
Parameters
$productTypeId : int = 0
$paymentRegionId : int = 0
$userTypeId : int = 0
$invoiceTypeId : int = 0
$pdfTemplateVariantId : int|null = null

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>

setInvoiceTypeId()

public setInvoiceTypeId(int $invoiceTypeId) : $this
Parameters
$invoiceTypeId : int
Return values
$this

setPaymentRegionId()

public setPaymentRegionId(int $paymentRegionId) : $this
Parameters
$paymentRegionId : int
Return values
$this

setPdfTemplateVariantId()

public setPdfTemplateVariantId(int|null $pdfTemplateVariantId) : $this
Parameters
$pdfTemplateVariantId : int|null
Return values
$this

setProductTypeId()

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