<?php
namespace App\Entity;
use App\Entity\User;
use App\Entity\Vehicle;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
use FOS\UserBundle\Entity\User as BaseUser;
use Gedmo\Mapping\Annotation as Gedmo;
/**
* @ORM\Entity(repositoryClass="App\Repository\VehicleUserAlertRepository")
*
* @ORM\Table(name="vehicle_user_alert")
*/
class VehicleUserAlert
{
/**
* @ORM\Id
*
* @ORM\Column(type="bigint")
*
* @ORM\GeneratedValue(strategy="AUTO")
*/
protected $id;
/**
* @ORM\ManyToOne(targetEntity="User")
*
* @ORM\JoinColumn(name="user_id", referencedColumnName="id", onDelete="CASCADE")
*/
protected $user;
/**
* Related vehicle.
*
* @ORM\ManyToOne(targetEntity="App\Entity\Vehicle")
*
* @ORM\JoinColumn(name="vehicle_id", referencedColumnName="id", onDelete="CASCADE")
*/
protected $vehicle;
/**
* @Gedmo\Timestampable(on="update")
*
* @ORM\Column(type="datetime", name="sended_at")
*/
protected $sendedAt;
public function getId()
{
return $this->id;
}
public function getUser()
{
return $this->user;
}
public function setUser($user): void
{
$this->user = $user;
}
public function getVehicle()
{
return $this->vehicle;
}
public function setVehicle(Vehicle $vehicle): void
{
$this->vehicle = $vehicle;
}
public function getSendedAt()
{
return $this->sendedAt;
}
public function setSendedAt(\DateTime $sendedAt): void
{
$this->sendedAt = $sendedAt;
}
}