AdvertPlaceRel
extends BaseEntity
in package
implements
AdvertPlaceRelInterface
AbstractYes
Join entity between an advert and an advert place (`cms_mod_base_advert_place_relations`).
PK is a derived identity (advert + advertPlace). order is the advert's position within the
place (drag & drop in the place editor). Association mapping lives in the concrete variants
(Admin/Api/Front).
Tags
Attributes
- #[MappedSuperclass]
- #[TableAlias]
- $alias: 'advertPlaceRel'
Table of Contents
Interfaces
- AdvertPlaceRelInterface
- Join entity between an advertisement and an ad position (`*AdvertPlaceRel`); holds the position reference.
Properties
- $advert : TAdvert|null
- $advertPlace : TAdvertPlace|null
- $order : int
Methods
- __construct() : mixed
- callInitMethods() : void
- Calls `init{TraitName}()` for every used trait that defines such a method.
- getAdvert() : TAdvert|null
- getAdvertPlace() : TAdvertPlace|null
- getAllTraits() : array<string, string>
- Returns all traits the class uses, including those used by parent classes and nested traits.
- getOrder() : int
- setAdvert() : $this
- setAdvertPlace() : $this
- setOrder() : $this
- getTraitsRecursive() : array<string, string>
- Walks the trait list recursively and collects nested traits too.
Properties
$advert
protected
TAdvert|null
$advert
= null
$advertPlace
protected
TAdvertPlace|null
$advertPlace
= null
$order
protected
int
$order
= 0
Attributes
- #[Column]
- $name: '`order`'
- $type: 'integer'
- $options: ['unsigned' => true, 'default' => 0]
Methods
__construct()
public
__construct([mixed $advert = null ][, mixed $advertPlace = null ][, int $order = 0 ]) : mixed
Parameters
- $advert : mixed = null
- $advertPlace : mixed = null
- $order : int = 0
callInitMethods()
Calls `init{TraitName}()` for every used trait that defines such a method.
public
callInitMethods() : void
getAdvert()
public
getAdvert() : TAdvert|null
Return values
TAdvert|nullgetAdvertPlace()
public
getAdvertPlace() : TAdvertPlace|null
Return values
TAdvertPlace|nullgetAllTraits()
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>getOrder()
public
getOrder() : int
Return values
intsetAdvert()
public
setAdvert(TAdvert|null $advert) : $this
Parameters
- $advert : TAdvert|null
Return values
$thissetAdvertPlace()
public
setAdvertPlace(TAdvertPlace|null $advertPlace) : $this
Parameters
- $advertPlace : TAdvertPlace|null
Return values
$thissetOrder()
public
setOrder(int $order) : $this
Parameters
- $order : int
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>