Documentation

MeetingDocument
in package
uses IdentifiableTrait, TimestampableTrait

Meeting document model.

Attributes
#[Entity]
#[HasLifecycleCallbacks]

Table of Contents

Properties

$createdAt  : DateTime
The date at which the entity was created.
$displayPosition  : int
Determines the order in which to display the document.
$id  : int|null
The default value must be `null` to prevent issues with auto generating the value. The column is strictly not nullable.
$meeting  : Meeting
Meeting.
$name  : string
Name of the document.
$path  : string
Path of the document, relative to the storage directory.
$updatedAt  : DateTime
The date at which the entity was updated.

Methods

getCreatedAt()  : DateTime
getDisplayPosition()  : int
getId()  : int|null
Get the identifier of the object.
getMeeting()  : Meeting
Get the meeting.
getName()  : string
Get the name of the document.
getPath()  : string
Get the path.
getUpdatedAt()  : DateTime
prePersist()  : void
Automatically fill in the `DateTime`s before the initial call to `persist()`.
preUpdate()  : void
Override the `preUpdate` lifecycle callback to prevent updating the timestamp when changing the display position.
setDisplayPosition()  : void
setId()  : void
Setting the identifier manually will, in most instances, result in undefined behaviour. Use with caution!
setMeeting()  : void
Set the meeting.
setName()  : void
Set the name of the document.
setPath()  : void
Set the path.
setCreatedAt()  : void
setUpdatedAt()  : void

Properties

$createdAt

The date at which the entity was created.

protected DateTime $createdAt
Attributes
#[Column]
$type: 'datetime'

$displayPosition

Determines the order in which to display the document.

protected int $displayPosition

The order is determined by sorting the positions in ascending order.

Attributes
#[Column]
$type: 'integer'
$options: ['default' => 0]

$id

The default value must be `null` to prevent issues with auto generating the value. The column is strictly not nullable.

protected int|null $id = null
Attributes
#[Column]
$type: 'integer'
#[GeneratedValue]
$strategy: 'IDENTITY'
#[Id]

$meeting

Meeting.

protected Meeting $meeting
Attributes
#[JoinColumn]
$name: 'meeting_type'
$referencedColumnName: 'type'
#[JoinColumn]
$name: 'meeting_number'
$referencedColumnName: 'number'
#[ManyToOne]
$targetEntity: \Decision\Model\Meeting::class
$inversedBy: 'documents'

$name

Name of the document.

protected string $name
Attributes
#[Column]
$type: 'string'

$path

Path of the document, relative to the storage directory.

protected string $path
Attributes
#[Column]
$type: 'string'

$updatedAt

The date at which the entity was updated.

protected DateTime $updatedAt
Attributes
#[Column]
$type: 'datetime'

Methods

getDisplayPosition()

public getDisplayPosition() : int
Return values
int

getId()

Get the identifier of the object.

public getId() : int|null
Tags
psalm-ignore-nullable-return
Return values
int|null

getName()

Get the name of the document.

public getName() : string
Return values
string

getPath()

Get the path.

public getPath() : string
Return values
string

prePersist()

Automatically fill in the `DateTime`s before the initial call to `persist()`.

public prePersist() : void
Attributes
#[PrePersist]

preUpdate()

Override the `preUpdate` lifecycle callback to prevent updating the timestamp when changing the display position.

public preUpdate(PreUpdateEventArgs $event) : void
Parameters
$event : PreUpdateEventArgs
Attributes
#[PreUpdate]

setDisplayPosition()

public setDisplayPosition(int $position) : void
Parameters
$position : int

setId()

Setting the identifier manually will, in most instances, result in undefined behaviour. Use with caution!

public setId(int|null $id) : void
Parameters
$id : int|null

setName()

Set the name of the document.

public setName(string $name) : void
Parameters
$name : string

setPath()

Set the path.

public setPath(string $path) : void
Parameters
$path : string

setCreatedAt()

private setCreatedAt(DateTime $createdAt) : void
Parameters
$createdAt : DateTime

setUpdatedAt()

private setUpdatedAt(DateTime $updatedAt) : void
Parameters
$updatedAt : DateTime

        
On this page

Search results