mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-30 02:25:00 +00:00
Apply rector rules: add annotation for doctrine mapping
This commit is contained in:
@@ -24,8 +24,6 @@ use Symfony\Component\Serializer\Annotation as Serializer;
|
||||
*
|
||||
* The event/calendar in the user may have a different id than the mainUser. We add then fields to store the
|
||||
* remote id of this event in the remote calendar.
|
||||
*
|
||||
*
|
||||
*/
|
||||
#[ORM\Entity]
|
||||
#[ORM\Table(name: 'chill_calendar.invite')]
|
||||
@@ -59,7 +57,6 @@ class Invite implements TrackUpdateInterface, TrackCreationInterface
|
||||
#[ORM\ManyToOne(targetEntity: Calendar::class, inversedBy: 'invites')]
|
||||
private ?Calendar $calendar = null;
|
||||
|
||||
|
||||
#[Serializer\Groups(groups: ['calendar:read', 'read'])]
|
||||
#[ORM\Id]
|
||||
#[ORM\GeneratedValue]
|
||||
@@ -70,9 +67,8 @@ class Invite implements TrackUpdateInterface, TrackCreationInterface
|
||||
#[ORM\Column(type: \Doctrine\DBAL\Types\Types::TEXT, nullable: false, options: ['default' => 'pending'])]
|
||||
private string $status = self::PENDING;
|
||||
|
||||
|
||||
#[Serializer\Groups(groups: ['calendar:read', 'read', 'docgen:read'])]
|
||||
#[ORM\ManyToOne(targetEntity: \Chill\MainBundle\Entity\User::class)]
|
||||
#[ORM\ManyToOne(targetEntity: User::class)]
|
||||
#[ORM\JoinColumn(nullable: false)]
|
||||
private ?User $user = null;
|
||||
|
||||
|
Reference in New Issue
Block a user