From 2c20a122d2e6f47bce90d42cbcf0846a4f6e7259 Mon Sep 17 00:00:00 2001 From: Ruben Date: Thu, 1 Sep 2016 17:16:17 +0100 Subject: [PATCH] Hit --- src/Models/Game.php | 4 ++-- src/Models/Target.php | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Models/Game.php b/src/Models/Game.php index cc36308..8cfbfd8 100644 --- a/src/Models/Game.php +++ b/src/Models/Game.php @@ -43,8 +43,8 @@ class Game private $hits; /** - * @ORM\Column - * @var Total score + * @ORM\Column(type="float") + * @var float Total score */ private $score; diff --git a/src/Models/Target.php b/src/Models/Target.php index ab9ff46..7d47861 100644 --- a/src/Models/Target.php +++ b/src/Models/Target.php @@ -10,6 +10,7 @@ use Doctrine\Common\Collections\ArrayCollection; * Users * * @ORM\Table(name="targets",uniqueConstraints={ + * @ORM\UniqueConstraint(name="level_position", columns={"level_id", "position"})}) * }) * @ORM\Entity */