Form question

pull/13/head
root 2018-06-05 18:40:50 +02:00
parent ed54b5a656
commit 22d3e75649
2 changed files with 18 additions and 1 deletions

View File

@ -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;
}
}

View File

@ -13,7 +13,7 @@ class QuestionType extends AbstractType
{
$builder
->add('text')
->add('date')
->add('sticker')
;
}