Skip to content

Commit

Permalink
fix: fixed location requirements field
Browse files Browse the repository at this point in the history
  • Loading branch information
benjasper committed Sep 18, 2023
1 parent 6dc7bce commit c980bab
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions Classes/Domain/Model/Posting.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,9 @@ class Posting extends AbstractEntity
protected bool $homeoffice = false;

/**
* @var ObjectStorage<LocationRequirement>|null
* @var LocationRequirement|null
*/
protected ?ObjectStorage $locationrequirements = null;
protected ?LocationRequirement $locationrequirements = null;

/**
* contact
Expand Down Expand Up @@ -216,7 +216,6 @@ public function __construct()
protected function initStorageObjects()
{
$this->categories = new ObjectStorage();
$this->locationrequirements = new ObjectStorage();
$this->locations = new ObjectStorage();
}

Expand Down Expand Up @@ -729,4 +728,14 @@ public function setHomeoffice(bool $homeoffice): void
{
$this->homeoffice = $homeoffice;
}

public function getLocationrequirements(): ?LocationRequirement
{
return $this->locationrequirements;
}

public function setLocationrequirements(?LocationRequirement $locationrequirements): void
{
$this->locationrequirements = $locationrequirements;
}
}

0 comments on commit c980bab

Please sign in to comment.