BConnect POS - Reference PHP

ProductVariant
in package

Attributes
#[Entity]
$repositoryClass: \App\Repository\ProductVariantRepository::class

Table of Contents

Properties

$id  : int|null
$name  : string|null
$product  : Product|null
$variantValues  : Collection

Methods

__construct()  : mixed
addVariantValue()  : static
getId()  : int|null
getName()  : string|null
getProduct()  : Product|null
getVariantValues()  : Collection<int, VariantValue>
removeVariantValue()  : static
setName()  : static
setProduct()  : static

Properties

$id

private int|null $id = null
Attributes
#[Column]
#[GeneratedValue]
#[Id]

$name

private string|null $name = null
Attributes
#[Column]
$length: 255
$nullable: true

$product

private Product|null $product = null
Attributes
#[ManyToOne]
$inversedBy: 'productVariants'

$variantValues

private Collection $variantValues
Attributes
#[OneToMany]
$mappedBy: 'productVariant'
$targetEntity: \App\Entity\VariantValue::class
$cascade: ['persist']
$orphanRemoval: true

Methods

getName()

public getName() : string|null
Return values
string|null

setName()

public setName(string|null $name) : static
Parameters
$name : string|null
Return values
static
On this page

Search results