ProductSetAccessory
extends BaseEntity
in package
AbstractYes
Accessory (set to set, self-reference) with ordering. `productSet` is the owning set (inversedBy accessories); `accessorySet` is the recommended accessory (no back collection).
Composite PK; the concrete #[ORM\Id] and many-to-one come from the Api/Admin leaf.
Tags
Attributes
- #[MappedSuperclass]
- #[TableAlias]
- $alias: 'productSetAccessory'
Table of Contents
Properties
- $accessorySet : TProductSet|null
- $order : int
- $productSet : TProductSet|null
Methods
- __construct() : mixed
- callInitMethods() : void
- Calls `init{TraitName}()` for every used trait that defines such a method.
- getAccessorySet() : TProductSet|null
- getAllTraits() : array<string, string>
- Returns all traits the class uses, including those used by parent classes and nested traits.
- getOrder() : int
- getProductSet() : TProductSet|null
- setAccessorySet() : $this
- setOrder() : $this
- setProductSet() : $this
- getTraitsRecursive() : array<string, string>
- Walks the trait list recursively and collects nested traits too.
Properties
$accessorySet
protected
TProductSet|null
$accessorySet
= null
$order
protected
int
$order
= 1
Attributes
- #[Column]
- $name: '`order`'
- $type: 'integer'
- $options: ['unsigned' => true]
$productSet
protected
TProductSet|null
$productSet
= null
Methods
__construct()
public
__construct([mixed $productSet = null ][, mixed $accessorySet = null ][, int $order = 1 ]) : mixed
Parameters
- $productSet : mixed = null
- $accessorySet : mixed = null
- $order : int = 1
callInitMethods()
Calls `init{TraitName}()` for every used trait that defines such a method.
public
callInitMethods() : void
getAccessorySet()
public
getAccessorySet() : TProductSet|null
Return values
TProductSet|nullgetAllTraits()
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>getOrder()
public
getOrder() : int
Return values
intgetProductSet()
public
getProductSet() : TProductSet|null
Return values
TProductSet|nullsetAccessorySet()
public
setAccessorySet(TProductSet|null $accessorySet) : $this
Parameters
- $accessorySet : TProductSet|null
Return values
$thissetOrder()
public
setOrder(int $order) : $this
Parameters
- $order : int
Return values
$thissetProductSet()
public
setProductSet(TProductSet|null $productSet) : $this
Parameters
- $productSet : TProductSet|null
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>