Logidav Docs

Category
in package

Category

Tags
ORM\Table

(name="mz_bigbuy_category")

ORM\Entity

(repositoryClass="BigbuyBundle\Repository\CategoryRepository")

Serializer\ExclusionPolicy

("all")

Table of Contents

Properties

$id  : int
$isEnabled  : bool
$name  : string
$parentId  : int
$products  : mixed

Methods

__construct()  : mixed
Category constructor.
getId()  : int
Get id
getName()  : string
getParentId()  : int
getProducts()  : Collection
isEnabled()  : bool
setId()  : Category
setIsEnabled()  : void
setName()  : Category
setParentId()  : mixed

Properties

$id

private int $id
Tags
ORM\Column

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

ORM\Id
ORM\GeneratedValue

(strategy="NONE")

Serializer\Groups

({"detail", "list"})

Serializer\Expose

(true)

$isEnabled

private bool $isEnabled
Tags
ORM\Column

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

$name

private string $name
Tags
ORM\Column

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

Serializer\Groups

({"detail", "list"})

Serializer\Expose

(true)

$parentId

private int $parentId
Tags
ORM\Column

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

Serializer\Groups

({"detail", "list"})

Serializer\Expose

(true)

$products

private mixed $products
Tags
ORM\ManyToMany

(targetEntity="BigbuyBundle\Entity\Product", mappedBy="categories")

Methods

__construct()

Category constructor.

public __construct() : mixed

getId()

Get id

public getId() : int
Return values
int

getName()

public getName() : string
Return values
string

getParentId()

public getParentId() : int
Return values
int

getProducts()

public getProducts() : Collection
Return values
Collection

isEnabled()

public isEnabled() : bool
Return values
bool

setIsEnabled()

public setIsEnabled(bool $isEnabled) : void
Parameters
$isEnabled : bool

setParentId()

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

        
On this page

Search results