feat: additional assignment agnostic teamer feedback by admins
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user