PollPlaceRel
extends PollPlaceRel
in package
Front variant of the poll to poll-place link (join entity with `order`).
The front Poll does not map the link back, so poll has no inversedBy.
Tags
Attributes
- #[Entity]
- #[Table]
- $name: 'cms_mod_base_poll_place_relations'
- #[TableAlias]
- 'pollPlaceRel'
Table of Contents
Properties
- $order : int
- $poll : TPoll|null
- $pollPlace : TPollPlace|null
Methods
- __construct() : mixed
- callInitMethods() : void
- Calls `init{TraitName}()` for every used trait that defines such a method.
- getAllTraits() : array<string, string>
- Returns all traits the class uses, including those used by parent classes and nested traits.
- getOrder() : int
- getPoll() : TPoll|null
- getPollPlace() : TPollPlace|null
- setOrder() : $this
- setPoll() : $this
- setPollPlace() : $this
- getTraitsRecursive() : array<string, string>
- Walks the trait list recursively and collects nested traits too.
Properties
$order
protected
int
$order
= 0
Attributes
- #[Column]
- $name: '`order`'
- $type: 'integer'
- $options: ['unsigned' => true, 'default' => 0]
$poll
protected
TPoll|null
$poll
= null
Attributes
- #[EntityOf]
- \App\UI\Front\Base\Models\Entities\Poll::class
- #[Id]
- #[Identity]
- #[JoinColumn]
- $name: 'cms_mod_base_polls_poll_id'
- $referencedColumnName: 'poll_id'
- $onDelete: 'CASCADE'
- #[ManyToOne]
- $targetEntity: \App\UI\Front\Base\Models\Entities\Poll::class
$pollPlace
protected
TPollPlace|null
$pollPlace
= null
Attributes
- #[EntityOf]
- \App\UI\Front\Base\Models\Entities\PollPlace::class
- #[Id]
- #[Identity]
- #[JoinColumn]
- $name: 'cms_mod_base_poll_places_poll_place_id'
- $referencedColumnName: 'poll_place_id'
- $onDelete: 'CASCADE'
- #[ManyToOne]
- $targetEntity: \App\UI\Front\Base\Models\Entities\PollPlace::class
- $inversedBy: 'pollRels'
Methods
__construct()
public
__construct([mixed $poll = null ][, mixed $pollPlace = null ][, int $order = 0 ]) : mixed
Parameters
- $poll : mixed = null
- $pollPlace : mixed = null
- $order : int = 0
callInitMethods()
Calls `init{TraitName}()` for every used trait that defines such a method.
public
callInitMethods() : void
getAllTraits()
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
intgetPoll()
public
getPoll() : TPoll|null
Return values
TPoll|nullgetPollPlace()
public
getPollPlace() : TPollPlace|null
Return values
TPollPlace|nullsetOrder()
public
setOrder(int $order) : $this
Parameters
- $order : int
Return values
$thissetPoll()
public
setPoll(TPoll|null $poll) : $this
Parameters
- $poll : TPoll|null
Return values
$thissetPollPlace()
public
setPollPlace(TPollPlace|null $pollPlace) : $this
Parameters
- $pollPlace : TPollPlace|null
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>