CoolCMS API

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
template

*AdvertRel join entity

Table of Contents

Properties

$advertRels  : Collection<int, TRel>

Methods

addAdvertRel()  : $this
advertRelCollectionInit()  : void
clearAdvertRels()  : $this
getAdvertRels()  : Collection<int, TRel>
setAdvertRels()  : $this

Properties

Methods

setAdvertRels()

public setAdvertRels(Collection<int, TRel>|array<int, TRel> $advertRels) : $this
Parameters
$advertRels : Collection<int, TRel>|array<int, TRel>
Return values
$this
On this page

Search results