ActivityUpdateProposal
in package
uses
IdentifiableTrait
Update prop model.
Attributes
- #[Entity]
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.
- $new : Activity
- The new activity.
- $old : Activity
- The previous activity version, if any.
Methods
- getId() : int|null
- Get the identifier of the object.
- getNew() : Activity
- getOld() : Activity
- setId() : void
- Setting the identifier manually will, in most instances, result in undefined behaviour. Use with caution!
- setNew() : void
- setOld() : 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]
$new
The new activity.
protected
Activity
$new
Attributes
- #[JoinColumn]
- $referencedColumnName: 'id'
- $nullable: false
- #[ManyToOne]
- $targetEntity: \Activity\Model\Activity::class
$old
The previous activity version, if any.
protected
Activity
$old
Attributes
- #[JoinColumn]
- $referencedColumnName: 'id'
- $nullable: false
- #[ManyToOne]
- $targetEntity: \Activity\Model\Activity::class
- $inversedBy: 'updateProposal'
Methods
getId()
Get the identifier of the object.
public
getId() : int|null
Tags
Return values
int|nullgetNew()
public
getNew() : Activity
Return values
ActivitygetOld()
public
getOld() : Activity
Return values
ActivitysetId()
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
setNew()
public
setNew(Activity $new) : void
Parameters
- $new : Activity
setOld()
public
setOld(Activity $old) : void
Parameters
- $old : Activity