diff --git a/src/Entity/Record.php b/src/Entity/Record.php index 7e0aae5..754585f 100644 --- a/src/Entity/Record.php +++ b/src/Entity/Record.php @@ -25,6 +25,7 @@ abstract class Record { use Tools\Identifier; use Tools\Ownership; + use Tools\Parametrized; use Tools\Hashable; #[ORM\Column(type: 'string', length: 16, enumType: Type::class)] @@ -51,9 +52,6 @@ abstract class Record #[ORM\Column(type: 'boolean')] protected bool $isFinished = false; - #[ORM\Column(type: 'json', nullable: true)] - protected ?array $params = null; - #[ORM\Column(type: 'text', nullable: true)] protected ?string $note = null; @@ -222,18 +220,6 @@ public function addParams(array $params): void } - public function getParams(): array - { - return $this->params ?: []; - } - - - public function getParam(string $key): mixed - { - return $this->params[$key] ?? null; - } - - public function getParamsUnified(): array { return Arrays::flatten($this->getParams());