feat: additional jobprofile infotext
This commit is contained in:
@@ -41,6 +41,9 @@ class Assignment implements BlameableEntityInterface, TimestampableEntityInterfa
|
||||
#[Assert\NotNull(message: 'Bitte gib das Jobprofil an')]
|
||||
private ?JobProfile $jobProfile = null;
|
||||
|
||||
#[ORM\Column(type: Types::TEXT, nullable: true)]
|
||||
private ?string $jobProfileInfo = null;
|
||||
|
||||
#[ORM\Column(nullable: true)]
|
||||
#[Assert\Range(min: 1, minMessage: 'Die Mindestanzahl ist 1')]
|
||||
private ?int $availableDispositions = 1;
|
||||
@@ -119,10 +122,6 @@ class Assignment implements BlameableEntityInterface, TimestampableEntityInterfa
|
||||
$instance->addFee($fee);
|
||||
});
|
||||
|
||||
$assignment->getDocuments()->map(function (Upload $document) use ($instance) {
|
||||
$instance->addDocument($document);
|
||||
});
|
||||
|
||||
return $instance;
|
||||
}
|
||||
|
||||
@@ -160,6 +159,18 @@ class Assignment implements BlameableEntityInterface, TimestampableEntityInterfa
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getJobProfileInfo(): ?string
|
||||
{
|
||||
return $this->jobProfileInfo;
|
||||
}
|
||||
|
||||
public function setJobProfileInfo(?string $jobProfileInfo): static
|
||||
{
|
||||
$this->jobProfileInfo = $jobProfileInfo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getAvailableDispositions(): ?int
|
||||
{
|
||||
return $this->availableDispositions;
|
||||
|
||||
Reference in New Issue
Block a user