From f45dacea001727107a730ef893dfffa2d52f7301 Mon Sep 17 00:00:00 2001 From: Martin de Keijzer Date: Mon, 7 May 2018 10:37:37 +0200 Subject: [PATCH] Change relation between input and broadcast to ManyToOne to make inputs reusable (Fixes #83) --- Entity/LiveBroadcast.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Entity/LiveBroadcast.php b/Entity/LiveBroadcast.php index bc547b5..3d797f4 100644 --- a/Entity/LiveBroadcast.php +++ b/Entity/LiveBroadcast.php @@ -58,7 +58,7 @@ class LiveBroadcast /** * @var AbstractMedia|null * - * @ORM\OneToOne(targetEntity="Martin1982\LiveBroadcastBundle\Entity\Media\AbstractMedia") + * @ORM\ManyToOne(targetEntity="Martin1982\LiveBroadcastBundle\Entity\Media\AbstractMedia") * @ORM\JoinColumn(name="input_id", referencedColumnName="id") */ private $input;