JobUpdate
in package
uses
IdentifiableTrait
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.
- $original : Job
- The current job, to which an update is proposed.
- $proposal : Job
- The proposed update of the company.
Methods
- getId() : int|null
- Get the identifier of the object.
- getOriginal() : Job
- Get the original `Job`.
- getProposal() : Job
- Get the proposed update of `$original`.
- setId() : void
- Setting the identifier manually will, in most instances, result in undefined behaviour. Use with caution!
- setOriginal() : void
- Set the original `Job`.
- setProposal() : void
- Set the proposed update for `$original`.
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]
$original
The current job, to which an update is proposed.
protected
Job
$original
Attributes
- #[JoinColumn]
- $referencedColumnName: 'id'
- $nullable: false
- #[ManyToOne]
- $targetEntity: \Company\Model\Job::class
- $inversedBy: 'updateProposals'
$proposal
The proposed update of the company.
protected
Job
$proposal
Attributes
- #[JoinColumn]
- $referencedColumnName: 'id'
- $nullable: false
- #[OneToOne]
- $targetEntity: \Company\Model\Job::class
- $cascade: ['remove']
Methods
getId()
Get the identifier of the object.
public
getId() : int|null
Tags
Return values
int|nullgetOriginal()
Get the original `Job`.
public
getOriginal() : Job
Return values
JobgetProposal()
Get the proposed update of `$original`.
public
getProposal() : Job
Return values
JobsetId()
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
setOriginal()
Set the original `Job`.
public
setOriginal(Job $original) : void
Parameters
- $original : Job
setProposal()
Set the proposed update for `$original`.
public
setProposal(Job $proposal) : void
Parameters
- $proposal : Job