<?php

namespace AppBundle\Entity\Booking;

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

/**
 * Cours récurrent
 *
 * @Iri("http://schema.org/CourseRecur")
 */
#[ORM\Entity]
class CourseRecur extends AbstractBookingRecur
{
    /**
     * @var Course
     */
    #[ORM\ManyToOne(targetEntity: 'Course', inversedBy: 'eventRecur')]
    #[Groups(['bookingrecur', 'edu_stu_courses_courses', 'student_registration_courses', 'planning_detail', 'course_details'])]
    protected $event;
}
