Adding a column for community work penalties on Criminal Documents

This commit is contained in:
2023-07-05 16:18:57 +02:00
parent 93891bd18a
commit 30995316ae
7 changed files with 59 additions and 0 deletions

View File

@@ -31,6 +31,12 @@ class Criminal extends Document
*/
private $amountTime;
/**
* @ORM\Column(type="integer", nullable=true)
* @Gedmo\Versioned
*/
private $amountCommunityWork;
/**
* @ORM\Column(type="text", length=4294967295, nullable=true)
* @Gedmo\Versioned
@@ -83,6 +89,18 @@ class Criminal extends Document
return $this;
}
public function getAmountCommunityWork(): ?int
{
return $this->amountCommunityWork;
}
public function setAmountCommunityWork(?int $amountCommunityWork): self
{
$this->amountCommunityWork = $amountCommunityWork;
return $this;
}
public function getContent(): ?string
{
return $this->content;

View File

@@ -20,6 +20,7 @@ class CriminalType extends DocumentType
->add('content', ContentType::class, ['label' => 'form_label_informations' ])
->add('amountMoney', null, ['label' => 'form_label_amount', 'help' => 'form_help_amount'])
->add('amountTime', null, ['label' => 'form_label_time', 'help' => 'form_help_time'])
->add('amountCommunityWork', null, ['label' => 'form_label_community_work', 'help' => 'form_help_community_work'])
;
}