Add Last Wish on directories medical's informations

This commit is contained in:
Xbird
2022-07-17 15:35:05 +00:00
parent 62c243f8f9
commit ed0a35f09f
9 changed files with 754 additions and 664 deletions

View File

@@ -477,6 +477,11 @@ class Directory
*/
private $medicaltrusted;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $medicalLastWish;
public function __construct()
{
@@ -1506,4 +1511,16 @@ class Directory
return $this;
}
public function getMedicalLastWish(): ?string
{
return $this->medicalLastWish;
}
public function setMedicalLastWish(?string $medicalLastWish): self
{
$this->medicalLastWish = $medicalLastWish;
return $this;
}
}

View File

@@ -82,6 +82,15 @@ class DirectoryType extends AbstractType
'attr' => ['style' => 'height: 400px;']
]
)
->add(
'medicalLastWish',
ContentType::class,
['label' => 'form_label_medical_lastwish',
'help' => 'form_help_medical_lastwish',
'required' => false,
'attr' => ['style' => 'height: 400px;']
]
)
->add(
'medicalTrusted',
ContentType::class,