diff --git a/src/Entity/Question.php b/src/Entity/Question.php index f518c55..329ee59 100644 --- a/src/Entity/Question.php +++ b/src/Entity/Question.php @@ -42,6 +42,11 @@ class Question */ private $responses; + /** + * @ORM\Column(type="string", length=255, nullable=true) + */ + private $sticker; + public function __construct() { $this->responses = new ArrayCollection(); @@ -119,4 +124,16 @@ class Question return $this; } + + public function getSticker(): ?string + { + return $this->sticker; + } + + public function setSticker(?string $sticker): self + { + $this->sticker = $sticker; + + return $this; + } } diff --git a/src/Form/QuestionType.php b/src/Form/QuestionType.php index 5100d21..4d5eff3 100644 --- a/src/Form/QuestionType.php +++ b/src/Form/QuestionType.php @@ -13,7 +13,7 @@ class QuestionType extends AbstractType { $builder ->add('text') - ->add('date') + ->add('sticker') ; }