WIP: Implement closer BPN integration

This commit is contained in:
Björn Fromme
2023-10-06 18:14:05 +02:00
parent bea5edd615
commit 25a90b04aa
23 changed files with 628 additions and 224 deletions
+6 -6
View File
@@ -27,9 +27,9 @@ class Assignment implements BlameableEntityInterface, TimestampableEntityInterfa
#[ORM\Column(type: 'string', length: 36, unique: true)]
private string $uuid;
#[ORM\Column(nullable: true)]
#[ORM\ManyToOne]
#[Assert\NotNull(message: 'Bitte gib die Destination an')]
private ?int $destinationBusProId = null;
private ?BpnDate $destination = null;
#[ORM\ManyToOne]
#[Assert\NotNull(message: 'Bitte gib das Jobprofil an')]
@@ -93,14 +93,14 @@ class Assignment implements BlameableEntityInterface, TimestampableEntityInterfa
return $this->uuid;
}
public function getDestinationBusProId(): ?int
public function getDestination(): ?BpnDate
{
return $this->destinationBusProId;
return $this->destination;
}
public function setDestinationBusProId(?int $destinationBusProId): static
public function setDestination(?BpnDate $destination): static
{
$this->destinationBusProId = $destinationBusProId;
$this->destination = $destination;
return $this;
}