Sources

Sources Entity to manage incoming traffic sources and group assignment

package

App\Entity

ORM\Table

(name="sources")

ORM\Entity

(repositoryClass="App\Repository\SourcesRepository")

UniqueEntity

("gpsId")

Methods

Doctrine PrePersist actions triggered when record row is requested

createdOnPrePersit() 
ORM\PrePersist

Get blocked status: true or false

getBlocked() : boolean

Response

boolean

$blocked

Returns the record $created timestamp

getCreated() : integer

Response

integer

$created

Get GPS ID

getGpsId() : null|string

Response

null|string

Gets the foreign key for Groups ID relationship

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

Response

\App\Entity\Groups|null

Get source ID

getId() : integer

Response

integer

Get Last Epoch Timestamp source was received

getLastTimestamp() : integer

Response

integer

$lastTimestamp

Returns the record $updated timestamp

getUpdated() : integer

Response

integer

$updated

Set blocked status: true or false

setBlocked(boolean $blocked) : \App\Entity\Sources

Arguments

$blocked

boolean

Response

\App\Entity\Sources

Sets the record $created timestamp

setCreated(integer $created) : $this

Arguments

$created

integer

Response

$this

Set GPS ID

setGpsId(string $gpsId) : \App\Entity\Sources

Arguments

$gpsId

string

Response

\App\Entity\Sources

Sets the foreign key for Groups ID relationship

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

Arguments

$group_id

\App\Entity\Groups

Response

\App\Entity\Sources

Set Last Epoch Timestamp source was received

setLastTimestamp(integer $lastTimestamp) : \App\Entity\Sources

Arguments

$lastTimestamp

integer

Response

\App\Entity\Sources

Sets the record $updated timestamp

setUpdated(integer $updated) : $this

Arguments

$updated

integer

Response

$this

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)

GPS ID from Incoming XML

gpsId : 
ORM\Column

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

Assert\NotNull

Type(s)

Last Epoch Timestamp source was received

lastTimestamp : integer
var
ORM\Column

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

Type(s)

integer

Blocked target option - false or true: 0 or 1

blocked : 
ORM\Column

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

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="sources")

Type(s)