<?php

namespace AppBundle\Entity\Booking;

use Doctrine\ORM\Mapping as ORM;
use Dunglas\ApiBundle\Annotation\Iri;
use Symfony\Component\Serializer\Annotation\Groups;

/**
 * Evènement récurrent
 *
 * @Iri("http://schema.org/EventRecur")
 */
#[ORM\Entity]
class EventRecur extends AbstractBookingRecur
{
    /**
     * @var Event
     */
    #[ORM\ManyToOne(targetEntity: 'Event', inversedBy: 'eventRecur')]
    #[Groups(['bookingrecur', 'booking_event_eventrecur'])]
    protected $event;
}
