MeetingDocument
    
            
            in package
            
        
    
    
            
            uses
                            IdentifiableTrait,                             TimestampableTrait                    
    
Meeting document model.
Attributes
- #[Entity]
 
- #[HasLifecycleCallbacks]
 
Table of Contents
Properties
- $id : int|null
 - The default value must be `null` to prevent issues with auto generating the value. The column is strictly not nullable.
 - $createdAt : DateTime
 - The date at which the entity was created.
 - $displayPosition : int
 - Determines the order in which to display the document.
 - $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
$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]
 
$createdAt
The date at which the entity was created.
        private
            DateTime
    $createdAt
    
    
    
    
    
    Attributes
- #[Column]
 - $type: 'datetime'
 
$displayPosition
Determines the order in which to display the document.
        private
            int
    $displayPosition
    
        The order is determined by sorting the positions in ascending order.
Attributes
- #[Column]
 - $type: 'integer'
 - $options: ['default' => 0]
 
$meeting
Meeting.
        private
            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.
        private
            string
    $name
    
    
    
    
    
    Attributes
- #[Column]
 - $type: 'string'
 
$path
Path of the document, relative to the storage directory.
        private
            string
    $path
    
    
    
    
    
    Attributes
- #[Column]
 - $type: 'string'
 
$updatedAt
The date at which the entity was updated.
        private
            DateTime
    $updatedAt
    
    
    
    
    
    Attributes
- #[Column]
 - $type: 'datetime'
 
Methods
getCreatedAt()
    public
                    getCreatedAt() : DateTime
    Return values
DateTimegetDisplayPosition()
    public
                    getDisplayPosition() : int
    Return values
intgetId()
Get the identifier of the object.
    public
                    getId() : int|null
    Tags
Return values
int|nullgetMeeting()
Get the meeting.
    public
                    getMeeting() : Meeting
    Return values
MeetinggetName()
Get the name of the document.
    public
                    getName() : string
    Return values
stringgetPath()
Get the path.
    public
                    getPath() : string
    Return values
stringgetUpdatedAt()
    public
                    getUpdatedAt() : DateTime
    Return values
DateTimeprePersist()
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
 
setMeeting()
Set the meeting.
    public
                    setMeeting(Meeting $meeting) : void
    Parameters
- $meeting : Meeting
 
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