ProductCategory

ProductCategory

Documentation generated from product-category.entity.ts on Feb 19 2019 at 16:20

A ProductCategory is a grouping of Products based on FacetValues.

Signature

class ProductCategory {
  constructor(input: DeepPartial<ProductCategory>)
  @Column({ default: false })
    isRoot: boolean;
  @Column()
    position: number;
  name: LocaleString;
  description: LocaleString;
  @OneToMany(type => ProductCategoryTranslation, translation => translation.base, { eager: true })
    translations: Array<Translation<ProductCategory>>;
  @ManyToOne(type => Asset)
    featuredAsset: Asset;
  @ManyToMany(type => Asset)
    @JoinTable()
    assets: Asset[];
  @ManyToMany(type => FacetValue)
    @JoinTable()
    facetValues: FacetValue[];
  @Column(type => CustomProductCategoryFields)
    customFields: CustomProductCategoryFields;
  @TreeChildren()
    children: ProductCategory[];
  @TreeParent()
    parent: ProductCategory;
  @ManyToMany(type => Channel)
    @JoinTable()
    channels: Channel[];
}

Members

constructor

method
type:
(input: DeepPartial<ProductCategory>) => ProductCategory

isRoot

property
type:
boolean

position

property
type:
number

name

property
type:
LocaleString

description

property
type:
LocaleString

translations

property
type:
Array<Translation<ProductCategory>>

featuredAsset

property
type:
Asset

assets

property
type:
Asset[]

facetValues

property
type:
FacetValue[]

customFields

property
type:
CustomProductCategoryFields

children

property
type:
ProductCategory[]

parent

property

channels

property
type:
Channel[]
alpha