feat: additional assignment agnostic teamer feedback by admins

This commit is contained in:
Björn Fromme
2024-07-18 17:29:18 +02:00
parent 82ff3bdf23
commit 3e908f03cb
9 changed files with 371 additions and 8 deletions
+17
View File
@@ -32,6 +32,7 @@ class Feedback implements BlameableEntityInterface, TimestampableEntityInterface
private ?string $status = self::STATUS_NEW;
#[ORM\ManyToOne(inversedBy: 'feedback')]
#[Assert\NotNull(message: 'Bitte auswählen', groups: ['admin'])]
private ?Teamer $teamer = null;
#[ORM\Column(length: 255, nullable: true)]
@@ -71,6 +72,10 @@ class Feedback implements BlameableEntityInterface, TimestampableEntityInterface
#[ORM\Column(length: 255)]
private ?string $author;
// Transient property for form only
#[Assert\NotNull(message: 'Bitte auswählen', groups: ['admin'])]
private ?FeedbackSet $feedbackSet = null;
public function __construct(User $author)
{
$this->uuid = Uuid::v4();
@@ -288,4 +293,16 @@ class Feedback implements BlameableEntityInterface, TimestampableEntityInterface
return $this;
}
public function getFeedbackSet(): ?FeedbackSet
{
return $this->feedbackSet;
}
public function setFeedbackSet(?FeedbackSet $feedbackSet): static
{
$this->feedbackSet = $feedbackSet;
return $this;
}
}