Targets

Targets Entity for managing outgoing target endpoint and group assignment

package

App\Entity

ORM\Table

(name="targets")

ORM\Entity

(repositoryClass="App\Repository\TargetsRepository")

UniqueEntity

("name")

Methods

Doctrine PrePersist actions triggered when record row is requested

createdOnPrePersit() 
ORM\PrePersist

Returns the record $created timestamp

getCreated() : integer

Response

integer

$created

Return the foreign key for Groups ID relationship

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

Response

\App\Entity\Groups|null

Get target ID

getId() : integer|null

Response

integer|null

Get target name

getName() : null|string

Response

null|string

Returns the record $updated timestamp

getUpdated() : integer

Response

integer

$updated

Get target URL

getUrl() : null|string

Response

null|string

Returns the record $created timestamp

setCreated(integer $created) : $this

Arguments

$created

integer

Response

$this

Sets the foreign key for Groups ID relationship

setGroupId(\App\Entity\Groups $group_id) : \App\Entity\Targets

Arguments

$group_id

\App\Entity\Groups

Response

\App\Entity\Targets

Set target name

setName(string $name) : \App\Entity\Targets

Arguments

$name

string

Response

\App\Entity\Targets

Sets the record $updated timestamp

setUpdated(integer $updated) : $this

Arguments

$updated

integer

Response

$this

Set target URL

setUrl(string $url) : \App\Entity\Targets

Arguments

$url

string

Response

\App\Entity\Targets

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

updatedOnPostPersit() 
ORM\PostPersist

Properties

Auto generated ID

id : 
ORM\Id

()

ORM\GeneratedValue

()

ORM\Column

(type="integer")

Type(s)

Target Name

name : 
ORM\Column

(type="string", length=32, unique=true, nullable=false)

Assert\NotNull

Type(s)

Target URL

url : 
ORM\Column

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

Assert\Url

Type(s)

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

Foreign key relationship of Groups ID key as membership

group_id : 
ORM\ManyToOne

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

Type(s)