Form question
parent
ed54b5a656
commit
22d3e75649
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -13,7 +13,7 @@ class QuestionType extends AbstractType
|
|||
{
|
||||
$builder
|
||||
->add('text')
|
||||
->add('date')
|
||||
->add('sticker')
|
||||
;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue