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") |
createdOnPrePersit()
ORM\PrePersist | |
---|---|
getBlocked() : boolean
boolean
$blocked
getCreated() : integer
integer
$created
getGpsId() : null|string
null|string
getGroupId() : \App\Entity\Groups|null
getId() : integer
integer
getLastTimestamp() : integer
integer
$lastTimestamp
getUpdated() : integer
integer
$updated
setBlocked(boolean $blocked) : \App\Entity\Sources
setCreated(integer $created) : $this
integer
$this
setGpsId(string $gpsId) : \App\Entity\Sources
setGroupId(\App\Entity\Groups $group_id) : \App\Entity\Sources
setLastTimestamp(integer $lastTimestamp) : \App\Entity\Sources
setUpdated(integer $updated) : $this
integer
$this
updatedOnPostPersit()
ORM\PostPersist | |
---|---|
id :
ORM\Id |
() |
---|---|
ORM\GeneratedValue |
() |
ORM\Column |
(type="integer") |
gpsId :
ORM\Column |
(type="string", length=32, unique=true, nullable=false) |
---|---|
Assert\NotNull | |
lastTimestamp : integer
var | |
---|---|
ORM\Column |
(type="integer", name="last_timestamp", nullable=true) |
integer
blocked :
ORM\Column |
(type="boolean", name="blocked", nullable=true) |
---|---|
created : integer
var | |
---|---|
Gedmo\Timestampable |
(on="create") |
ORM\Column |
(type="integer", name="created", nullable=true) |
integer
updated : integer
var | |
---|---|
Gedmo\Timestampable |
(on="update") |
ORM\Column |
(type="integer", name="updated", nullable=true) |
integer
group_id :
ORM\ManyToOne |
(targetEntity="App\Entity\Groups", inversedBy="sources") |
---|---|