FeedProductCategoryRel
extends FeedProductCategoryRel
in package
Textual mapping of a category to a value per feed (used by the `getCategories` action).
Tags
Attributes
- #[Entity]
- #[Table]
- $name: 'cms_mod_eshop_feed_product_category_rel'
- #[TableAlias]
- 'feedProductCategoryRel'
Table of Contents
Properties
Methods
- __construct() : mixed
- callInitMethods() : void
- Calls `init{TraitName}()` for every used trait that defines such a method.
- getAllTraits() : array<string, string>
- Returns all traits the class uses, including those used by parent classes and nested traits.
- getCategory() : TCategory|null
- getFeed() : TFeed|null
- getId() : int|null
- getValue() : string
- isPersisted() : bool
- setCategory() : $this
- setFeed() : $this
- setId() : $this
- setValue() : $this
- getTraitsRecursive() : array<string, string>
- Walks the trait list recursively and collects nested traits too.
Properties
$category
protected
TCategory|null
$category
= null
Attributes
- #[EntityOf]
- \App\UI\Admin\Eshop\Models\Entities\ProductCategory::class
- #[JoinColumn]
- $name: 'cms_mod_eshop_product_categories_category_id'
- $referencedColumnName: 'category_id'
- $nullable: false
- $onDelete: 'CASCADE'
- #[ManyToOne]
- $targetEntity: \App\UI\Admin\Eshop\Models\Entities\ProductCategory::class
- $fetch: 'LAZY'
$feed
protected
TFeed|null
$feed
= null
Attributes
- #[EntityOf]
- \App\UI\Admin\Eshop\Models\Entities\Feed::class
- #[JoinColumn]
- $name: 'cms_mod_eshop_feeds_feed_id'
- $referencedColumnName: 'feed_id'
- $nullable: false
- $onDelete: 'CASCADE'
- #[ManyToOne]
- $targetEntity: \App\UI\Admin\Eshop\Models\Entities\Feed::class
- $inversedBy: 'categoryRels'
- $fetch: 'LAZY'
$id
protected
int|null
$id
= null
Attributes
- #[Column]
- $name: 'feed_product_category_rel_id'
- $type: 'integer'
- $options: ['unsigned' => true]
- #[GeneratedValue]
- #[Id]
$value
protected
string
$value
= ''
Attributes
- #[Column]
- $name: 'value'
- $type: 'text'
Methods
__construct()
public
__construct([int|null $id = null ][, mixed $feed = null ][, mixed $category = null ][, string $value = '' ]) : mixed
Parameters
- $id : int|null = null
- $feed : mixed = null
- $category : mixed = null
- $value : string = ''
callInitMethods()
Calls `init{TraitName}()` for every used trait that defines such a method.
public
callInitMethods() : void
getAllTraits()
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>getCategory()
public
getCategory() : TCategory|null
Return values
TCategory|nullgetFeed()
public
getFeed() : TFeed|null
Return values
TFeed|nullgetId()
public
getId() : int|null
Return values
int|nullgetValue()
public
getValue() : string
Return values
stringisPersisted()
public
isPersisted() : bool
Return values
boolsetCategory()
public
setCategory(TCategory|null $category) : $this
Parameters
- $category : TCategory|null
Return values
$thissetFeed()
public
setFeed(TFeed|null $feed) : $this
Parameters
- $feed : TFeed|null
Return values
$thissetId()
public
setId(int|null $id) : $this
Parameters
- $id : int|null
Return values
$thissetValue()
public
setValue(string $value) : $this
Parameters
- $value : string
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>