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