<?php
namespace App\Entity;
use App\Repository\LiveViewRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=LiveViewRepository::class)
*/
class LiveView extends BaseEntity
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity=Live::class, inversedBy="liveViews")
* @ORM\JoinColumn(nullable=false, onDelete="CASCADE")
*/
private $live;
public function getId(): ?int
{
return $this->id;
}
public function getLive(): ?Live
{
return $this->live;
}
public function setLive(?Live $live): self
{
$this->live = $live;
return $this;
}
}