CoolCMS API

PollRelCollectionTrait

Links an entity to polls through an ordered join entity (`pollRels`).

The concrete entity supplies the ORM mapping (one-to-many, target entity per variant) by redeclaring $pollRels. See PlaceCollectionTrait.

Tags
template

*PollRel join entity

Table of Contents

Properties

$pollRels  : Collection<int, TRel>

Methods

addPollRel()  : $this
clearPollRels()  : $this
getPollRels()  : Collection<int, TRel>
pollRelCollectionInit()  : void
setPollRels()  : $this

Properties

Methods

setPollRels()

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

Search results