<?php

namespace AppBundle\Entity\Booking;

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

/**
 * Périodes de vacances récurrentes d'un Access
 *
 * @Iri("http://schema.org/PersonHolidayRecur")
 */
#[ORM\Entity]
class PersonHolidayRecur extends AbstractBookingRecur
{
    /**
     * @var PersonHoliday
     */
    #[ORM\ManyToOne(targetEntity: 'PersonHoliday', inversedBy: 'eventRecur')]
    #[Groups(['bookingrecur'])]
    protected $event;
}
