Adding a column for community work penalties on Criminal Documents
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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'])
|
||||
;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user