Fix newsletter body validator

[MAILPOET-2900]
This commit is contained in:
Jan Jakeš
2020-05-14 15:21:15 +02:00
committed by Veljko V
parent 4862d42e8b
commit 04938bc6a1

View File

@ -30,7 +30,13 @@ class SendingQueueEntity {
/**
* @ORM\Column(type="json_or_serialized")
* @Assert\NotBlank()
* @Assert\Type("array")
* @Assert\Collection(
* fields = {
* "html" = @Assert\NotBlank(),
* "text" = @Assert\NotBlank(),
* }
* )
* @var array|null
*/
private $newsletterRenderedBody;