Logidav Docs

Product
in package

Product

Tags
ORM\Table

(name="mz_vidaxl_product")

ORM\Entity

(repositoryClass="VidaxlBundle\Repository\ProductRepository")

Serializer\ExclusionPolicy

("all")

Table of Contents

Properties

$categories  : mixed
$category  : mixed
$fullData  : text
$id  : int
$images  : text
$isActive  : bool
$isSelected  : bool
$menzzoPrice  : float
$name  : string
$newProduct  : mixed
$parentId  : int|null
$product  : mixed
$qty  : int
$retailPrice  : float
$sellingPrice  : float
$sku  : string
$updatedAt  : string
$wholesalePrice  : float

Methods

__construct()  : mixed
Constructor
addCategory()  : Product
Add Category
getCategories()  : Collection
Get Categories
getCategory()  : mixed|Category|null
getFullData()  : null|false|array<string|int, mixed>
getId()  : int
Get id
getImages()  : array<string|int, mixed>
getIsActive()  : bool
getIsSelected()  : bool
getMenzzoPrice()  : float
getName()  : string
getNewProduct()  : mixed|null|NewProduct
getParentId()  : int
getProduct()  : mixed|Product|null
getQty()  : int
getRetailPrice()  : float
getSku()  : string
getUpdatedAt()  : string
getWholesalePrice()  : float
removeCategory()  : mixed
Remove Category
setCategory()  : void
setFullData()  : mixed
setId()  : Product
setImages()  : Product
setIsActive()  : Product
setIsSelected()  : Product
setMenzzoPrice()  : Product
setName()  : Product
setNewProduct()  : Product
setParentId()  : void
setProduct()  : Product
setQty()  : Product
setRetailPrice()  : Product
setSku()  : Product
setUpdatedAtValue()  : mixed
setWholesalePrice()  : Product

Properties

$categories

private mixed $categories
Tags
ORM\ManyToMany

(targetEntity="VidaxlBundle\Entity\Category", inversedBy="products")

ORM\JoinTable

(name="vidaxl_products_categories")

$category

private mixed $category
Tags
ORM\ManyToOne

(targetEntity="VidaxlBundle\Entity\Category")

ORM\JoinColumn

(name="category_id", referencedColumnName="id", onDelete="SET NULL")

$fullData

private text $fullData
Tags
ORM\Column

(name="full_data", type="text", nullable=true)

$id

private int $id
Tags
ORM\Column

(name="id", type="integer")

ORM\Id
ORM\GeneratedValue

(strategy="AUTO")

Serializer\Groups

({"detail", "list"})

Serializer\Expose

(true)

$images

private text $images
Tags
ORM\Column

(name="images", type="text", nullable=true)

$isActive

private bool $isActive
Tags
ORM\Column

(name="is_active", type="boolean", options={"default" = true})

$isSelected

private bool $isSelected
Tags
ORM\Column

(name="is_selected", type="boolean", options={"default" = false})

$menzzoPrice

private float $menzzoPrice = null
Tags
ORM\Column

(name="menzzo_price", type="decimal", nullable=true, precision=12, scale=4, options={"default" = 0})

$name

private string $name
Tags
ORM\Column

(name="name", type="string", length=255, nullable=true)

Serializer\Groups

({"detail", "list"})

Serializer\Expose

(true)

$newProduct

private mixed $newProduct
Tags
ORM\ManyToOne

(targetEntity="AppBundle\Entity\NewProduct")

ORM\JoinColumn

(name="new_product_id", referencedColumnName="id", onDelete="SET NULL")

$parentId

private int|null $parentId
Tags
ORM\Column

(name="parent_id", type="integer", nullable=true)

$product

private mixed $product
Tags
ORM\OneToOne

(targetEntity="AppBundle\Entity\Product")

ORM\JoinColumn

(name="product_id", referencedColumnName="id", onDelete="SET NULL")

$qty

private int $qty
Tags
ORM\Column

(name="qty", type="integer", options={"default" = 0})

$retailPrice

private float $retailPrice
Tags
ORM\Column

(name="retail_price", type="decimal", nullable=true, precision=12, scale=4, options={"default" = 0})

$sellingPrice

private float $sellingPrice = null
Tags
ORM\Column

(name="selling_price", type="decimal", nullable=true, precision=12, scale=4, options={"default" = 0})

$sku

private string $sku
Tags
ORM\Column

(name="sku", type="string", length=255, unique=true)

Serializer\Groups

({"detail", "list"})

Serializer\Expose

(true)

$updatedAt

private string $updatedAt
Tags
ORM\Column

(name="updated_at", type="datetime", nullable=true)

$wholesalePrice

private float $wholesalePrice
Tags
ORM\Column

(name="wholesale_price", type="decimal", nullable=true, precision=12, scale=4, options={"default" = 0})

Methods

__construct()

Constructor

public __construct() : mixed

getCategories()

Get Categories

public getCategories() : Collection
Return values
Collection

getFullData()

public getFullData() : null|false|array<string|int, mixed>
Return values
null|false|array<string|int, mixed>

getId()

Get id

public getId() : int
Return values
int

getImages()

public getImages() : array<string|int, mixed>
Return values
array<string|int, mixed>

getIsActive()

public getIsActive() : bool
Return values
bool

getIsSelected()

public getIsSelected() : bool
Return values
bool

getMenzzoPrice()

public getMenzzoPrice() : float
Return values
float

getName()

public getName() : string
Return values
string

getParentId()

public getParentId() : int
Return values
int

getQty()

public getQty() : int
Return values
int

getRetailPrice()

public getRetailPrice() : float
Return values
float

getSku()

public getSku() : string
Return values
string

getUpdatedAt()

public getUpdatedAt() : string
Return values
string

getWholesalePrice()

public getWholesalePrice() : float
Return values
float

removeCategory()

Remove Category

public removeCategory(Category $category) : mixed
Parameters
$category : Category

setCategory()

public setCategory(mixed $category) : void
Parameters
$category : mixed

setFullData()

public setFullData(array<string|int, mixed> $fullData) : mixed
Parameters
$fullData : array<string|int, mixed>

setImages()

public setImages(array<string|int, mixed> $images) : Product
Parameters
$images : array<string|int, mixed>
Return values
Product

setIsActive()

public setIsActive(bool $isActive) : Product
Parameters
$isActive : bool
Return values
Product

setIsSelected()

public setIsSelected(bool $isSelected) : Product
Parameters
$isSelected : bool
Return values
Product

setMenzzoPrice()

public setMenzzoPrice(float $price) : Product
Parameters
$price : float
Return values
Product

setParentId()

public setParentId(int $parentId) : void
Parameters
$parentId : int

setProduct()

public setProduct(mixed $product) : Product
Parameters
$product : mixed
Return values
Product

setRetailPrice()

public setRetailPrice(float $price) : Product
Parameters
$price : float
Return values
Product

setUpdatedAtValue()

public setUpdatedAtValue() : mixed
Tags
ORM\PreUpdate
ORM\PrePersist

setWholesalePrice()

public setWholesalePrice(float $price) : Product
Parameters
$price : float
Return values
Product

        
On this page

Search results