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
Table of Contents
Properties
- $pollRels : Collection<int, TRel>
Methods
- addPollRel() : $this
- clearPollRels() : $this
- getPollRels() : Collection<int, TRel>
- pollRelCollectionInit() : void
- setPollRels() : $this
Properties
$pollRels
protected
Collection<int, TRel>
$pollRels
Methods
addPollRel()
public
addPollRel(TRel $rel) : $this
Parameters
- $rel : TRel
Return values
$thisclearPollRels()
public
clearPollRels() : $this
Return values
$thisgetPollRels()
public
getPollRels() : Collection<int, TRel>
Return values
Collection<int, TRel>pollRelCollectionInit()
public
pollRelCollectionInit() : void
setPollRels()
public
setPollRels(Collection<int, TRel>|array<int, TRel> $pollRels) : $this
Parameters
- $pollRels : Collection<int, TRel>|array<int, TRel>