Documentation

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
psalm-ignore-nullable-return
Return values
int|null

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

        
On this page

Search results