Add column that enables/disables the form

[MAILPOET-3075]
This commit is contained in:
Pavel Dohnal
2020-08-10 15:58:04 +02:00
committed by Veljko V
parent 76ea4a08e9
commit f0127cd68b
2 changed files with 12 additions and 0 deletions

View File

@@ -24,6 +24,9 @@ class FormEntity {
const DISPLAY_TYPE_SLIDE_IN = 'slide_in';
const DISPLAY_TYPE_OTHERS = 'others';
const STATUS_ENABLED = 'enabled';
const STATUS_DISABLED = 'disabled';
/**
* @ORM\Column(type="string")
* @var string
@@ -36,6 +39,12 @@ class FormEntity {
*/
private $body;
/**
* @ORM\Column(type="string")
* @var string
*/
private $status;
/**
* @ORM\Column(type="serialized_array")
* @var array|null
@@ -50,6 +59,7 @@ class FormEntity {
public function __construct($name) {
$this->name = $name;
$this->status = self::STATUS_ENABLED;
}
/**