Reverse deleting of organizationCost property on event entity to keep db data

This commit is contained in:
2025-05-08 16:29:15 +02:00
parent aef1efc6cd
commit 94d7a2a0bb
2 changed files with 17 additions and 9 deletions

View File

@@ -115,6 +115,12 @@ class Event implements HasCenterInterface, HasScopeInterface, TrackCreationInter
#[Serializer\Groups(['read'])]
private Collection $budgetElements;
/**
* @deprecated use budgetElements instead
*/
#[ORM\Column(type: Types::DECIMAL, precision: 10, scale: 4, nullable: true, options: ['default' => '0.0'])]
private string $organizationCost = '0.0';
/**
* Event constructor.
*/
@@ -383,4 +389,15 @@ class Event implements HasCenterInterface, HasScopeInterface, TrackCreationInter
{
$this->documents = $documents;
}
public function getOrganizationCost(): string
{
return $this->organizationCost;
}
public function setOrganizationCost(string $organizationCost): void
{
$this->organizationCost = $organizationCost;
}
}