Headers

Headers Entity to provide interface methods with database headers table

ORM\Table

(name="headers")

ORM\Entity
ORM\Entity

(repositoryClass="App\Repository\HeadersRepository")

package

App\Controller

Methods

Doctrine PrePersist actions triggered when record row is requested

createdOnPrePersit() 
ORM\PrePersist

Returns the current record $action type

getAction() : string

Response

string

Returns the current records $created timestamp

getCreated() : integer

Response

integer

$created

Returns current records $enabled status - ( true | false )

getEnabled() : boolean

Response

boolean

$enabled

Gets the foreign key for Groups ID relationship

getGroupId() : \App\Entity\Groups|null

Response

\App\Entity\Groups|null

Returns the current record $id

getId() : integer

Response

integer

$id

Returns the current record $name

getName() : string

Response

string

$name

Returns the current records $updated timestamp

getUpdated() : integer

Response

integer

$updated

Returns the current record $value

getValue() : string

Response

string

$value

Sets the current record $action type

setAction(string $action) : $this

Arguments

$action

string

Response

$this

Sets the current records $created timestamp

setCreated(integer $created) : $this

Arguments

$created

integer

Response

$this

Sets the current records $enabled status

setEnabled(boolean $enabled) : $this

Arguments

$enabled

boolean

Response

$this

Sets the foreign key for Groups ID relationship

setGroupId(\App\Entity\Groups|null $group_id) : \App\Entity\Headers

Arguments

$group_id

\App\Entity\Groups|null

Response

\App\Entity\Headers

Set the current record $name

setName(string $name) : $this

Arguments

$name

string

Response

$this

Sets the current records $updated timestamp

setUpdated(integer $updated) : $this

Arguments

$updated

integer

Response

$this

Sets the current record $value

setValue(string $value) : $this

Arguments

$value

string

Response

$this

Doctrine PostPersist actions triggered after record row is inserted and before flush

updatedOnPostPersit() 
ORM\PostPersist

Properties

Auto-incremented numeric ID for each record

id : integer
var
ORM\Column

(name="id", type="integer", nullable=false)

ORM\Id
ORM\GeneratedValue

(strategy="IDENTITY")

Type(s)

integer

Header key name for the associated value

name : string
var
ORM\Column

(name="name", type="string", length=48, nullable=false)

Assert\NotNull

Type(s)

string

Header value for the associated key name

value : string
var
ORM\Column

(name="value", type="text", length=65535, nullable=false)

Assert\NotNull

Type(s)

string

Header actions similar to Apache Headers configuration options

action : string
var
ORM\Column

(name="action", type="string", length=255, nullable=false)

Assert\NotNull

Type(s)

string

UTC timestamp of when record was created

created : integer
var
Gedmo\Timestampable

(on="create")

ORM\Column

(type="integer", name="created", nullable=true)

Type(s)

integer

UTC record of when record was last updated

updated : integer
var
Gedmo\Timestampable

(on="update")

ORM\Column

(type="integer", name="updated", nullable=true)

Type(s)

integer

Header is enabled ? true | false

enabled : boolean
var
ORM\Column

(name="enabled", type="boolean", nullable=true)

Type(s)

boolean

Foreign key relationship of Groups ID key as membership

group_id : 
ORM\ManyToOne

(targetEntity="App\Entity\Groups", inversedBy="headers")

Type(s)