AdvertRelCollectionTrait
Links an entity to adverts through an ordered join entity (`advertRels`).
The concrete entity supplies the ORM mapping (one-to-many, target entity per variant)
by redeclaring $advertRels. See PlaceCollectionTrait.
Tags
Table of Contents
Properties
- $advertRels : Collection<int, TRel>
Methods
- addAdvertRel() : $this
- advertRelCollectionInit() : void
- clearAdvertRels() : $this
- getAdvertRels() : Collection<int, TRel>
- setAdvertRels() : $this
Properties
$advertRels
protected
Collection<int, TRel>
$advertRels
Methods
addAdvertRel()
public
addAdvertRel(TRel $rel) : $this
Parameters
- $rel : TRel
Return values
$thisadvertRelCollectionInit()
public
advertRelCollectionInit() : void
clearAdvertRels()
public
clearAdvertRels() : $this
Return values
$thisgetAdvertRels()
public
getAdvertRels() : Collection<int, TRel>
Return values
Collection<int, TRel>setAdvertRels()
public
setAdvertRels(Collection<int, TRel>|array<int, TRel> $advertRels) : $this
Parameters
- $advertRels : Collection<int, TRel>|array<int, TRel>