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 */