Refactor custom fields api to doctrine

[MAILPOET-2453]
This commit is contained in:
Pavel Dohnal
2019-12-17 10:27:16 +01:00
committed by Rostislav Wolný
parent 49f92ef77c
commit ff9bd232ec
4 changed files with 97 additions and 40 deletions

View File

@@ -20,19 +20,20 @@ class CustomFieldEntity {
/**
* @ORM\Column(type="string", nullable=false, unique=true)
* @Assert\NotBlank()
* @var string
*/
private $name;
/**
* @ORM\Column(type="string", nullable=false)
* @Assert\NotBlank()
* @var string
*/
private $type;
/**
* @ORM\Column(type="json_or_serialized")
* @Assert\NotBlank()
* @var array
*/
private $params;
@@ -57,4 +58,25 @@ class CustomFieldEntity {
public function getParams() {
return $this->params;
}
/**
* @param string $name
*/
public function setName($name) {
$this->name = $name;
}
/**
* @param string $type
*/
public function setType($type) {
$this->type = $type;
}
/**
* @param array $params
*/
public function setParams($params) {
$this->params = $params;
}
}