Add Last Wish on directories medical's informations
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user