Query Metrics

38 Database Queries
13 Different statements
26.28 ms Query time
3 Invalid entities
31 Managed entities

Grouped Statements

Show all queries

Time Count Info
8.11 ms
(30.86%)
7
SELECT s0_.id AS id_0, s0_.start_at AS start_at_1, s0_.end_at AS end_at_2, s0_.lesson_id AS lesson_id_3, s0_.trainer_id AS trainer_id_4, s0_.plan_id AS plan_id_5, s0_.location_id AS location_id_6 FROM schedule_event s0_ INNER JOIN schedule_event_student s2_ ON s0_.id = s2_.schedule_event_id INNER JOIN student s1_ ON s1_.id = s2_.student_id LEFT JOIN person p3_ ON s1_.id = p3_.id WHERE p3_.id IN (?, ?, ?, ?, ?) AND s0_.start_at < ? AND s0_.end_at > ?
Parameters:
[
  Symfony\Component\Uid\UuidV7 {#1462
    __toString(): "019b9fdf-7841-770e-9c2a-0eb88e392eb8"
  }
  Symfony\Component\Uid\UuidV7 {#1503
    __toString(): "019b9fdf-7842-7c1e-b553-f8da5e0e88af"
  }
  Symfony\Component\Uid\UuidV7 {#1492
    __toString(): "019b9fdf-784a-7ac7-87ba-d032c2f0afa0"
  }
  Symfony\Component\Uid\UuidV7 {#1518
    __toString(): "019b9fdf-7854-7e96-93ff-90967f7ecba8"
  }
  Symfony\Component\Uid\UuidV7 {#1528
    __toString(): "019b9fdf-7857-7579-9d41-c6658edc42ad"
  }
  "2481-12-08 23:59:00"
  "2481-12-08 00:00:00"
]
5.64 ms
(21.48%)
7
SELECT s0_.id AS id_0, s0_.start_at AS start_at_1, s0_.end_at AS end_at_2, s0_.lesson_id AS lesson_id_3, s0_.trainer_id AS trainer_id_4, s0_.plan_id AS plan_id_5, s0_.location_id AS location_id_6 FROM schedule_event s0_ INNER JOIN trainer t1_ ON s0_.trainer_id = t1_.id LEFT JOIN person p2_ ON t1_.id = p2_.id WHERE p2_.id IN (?, ?, ?, ?, ?, ?) AND s0_.start_at < ? AND s0_.end_at > ?
Parameters:
[
  Symfony\Component\Uid\UuidV7 {#1335
    __toString(): "019b9fdf-7858-7b5e-b37a-c536df05126c"
  }
  Symfony\Component\Uid\UuidV7 {#1346
    __toString(): "019b9fdf-7858-7d72-b37a-c536dfeb3fcc"
  }
  Symfony\Component\Uid\UuidV7 {#1352
    __toString(): "019b9fdf-7859-7719-86b8-bba96e37f992"
  }
  Symfony\Component\Uid\UuidV7 {#1358
    __toString(): "019b9fdf-785a-77bb-8d9b-39e6c67c9ee7"
  }
  Symfony\Component\Uid\UuidV7 {#1364
    __toString(): "019b9fdf-785a-79cb-8d9b-39e6c7703d11"
  }
  Symfony\Component\Uid\UuidV7 {#1370
    __toString(): "019b9fdf-785b-72be-8e32-5e8d7e677b5e"
  }
  "2481-12-08 23:59:00"
  "2481-12-08 00:00:00"
]
2.96 ms
(11.25%)
7
SELECT s0_.id AS id_0, s0_.start_at AS start_at_1, s0_.end_at AS end_at_2, s0_.lesson_id AS lesson_id_3, s0_.trainer_id AS trainer_id_4, s0_.plan_id AS plan_id_5, s0_.location_id AS location_id_6 FROM schedule_event s0_ WHERE s0_.start_at < ? AND s0_.end_at > ?
Parameters:
[
  "2481-12-08 23:59:00"
  "2481-12-08 00:00:00"
]
2.88 ms
(10.97%)
7
SELECT s0_.id AS id_0, s0_.start_at AS start_at_1, s0_.end_at AS end_at_2, s0_.lesson_id AS lesson_id_3, s0_.trainer_id AS trainer_id_4, s0_.plan_id AS plan_id_5, s0_.location_id AS location_id_6 FROM schedule_event s0_ WHERE s0_.plan_id = ? AND s0_.start_at < ? AND s0_.end_at > ?
Parameters:
[
  Symfony\Component\Uid\UuidV7 {#711
    __toString(): "019ba2ba-731c-75b6-a381-4c2b53a14733"
  }
  "2481-12-08 23:59:00"
  "2481-12-08 00:00:00"
]
1.19 ms
(4.52%)
1
SELECT t1.id AS id_2, t1.name AS name_3, t1.surname AS surname_4, t1.email AS email_5, t1.phone_number AS phone_number_6, t1.type FROM trainer t0 INNER JOIN person t1 ON t0.id = t1.id INNER JOIN course_trainer ON t0.id = course_trainer.trainer_id WHERE course_trainer.course_id = ?
Parameters:
[
  "019b9fdf-788f-71c6-b2c1-6c82752cfeac"
]
1.14 ms
(4.32%)
1
SELECT t0.id AS id_1, t0.status AS status_2, t0.name AS name_3 FROM plan t0 WHERE t0.id = ?
Parameters:
[
  "019ba2ba-731c-75b6-a381-4c2b53a14733"
]
1.05 ms
(4.01%)
1
SELECT t1.id AS id_2, t1.name AS name_3, t1.surname AS surname_4, t1.email AS email_5, t1.phone_number AS phone_number_6, t1.type FROM student t0 INNER JOIN person t1 ON t0.id = t1.id INNER JOIN plan_student ON t0.id = plan_student.student_id WHERE plan_student.plan_id = ?
Parameters:
[
  "019ba2ba-731c-75b6-a381-4c2b53a14733"
]
0.68 ms
(2.60%)
1
SELECT t0.id AS id_1, t0.name AS name_2, t0.note AS note_3, t0.course_type AS course_type_4, t0.validity_duration AS validity_duration_5, t0.min_capacity AS min_capacity_6, t0.max_capacity AS max_capacity_7 FROM course t0 INNER JOIN plan_course ON t0.id = plan_course.course_id WHERE plan_course.plan_id = ?
Parameters:
[
  "019ba2ba-731c-75b6-a381-4c2b53a14733"
]
0.66 ms
(2.50%)
2
SELECT t0.id AS id_1, t0.name AS name_2, t0.note AS note_3, t0.duration AS duration_4, t0.course_id AS course_id_5 FROM lesson t0 WHERE t0.course_id = ?
Parameters:
[
  "019b9fdf-788f-707e-b2c1-6c82723dcbc8"
]
0.65 ms
(2.48%)
1
SELECT t0.id AS id_1, t0.name AS name_2, t0.note AS note_3, t0.duration AS duration_4, t0.course_id AS course_id_5 FROM lesson t0 WHERE t0.id = ?
Parameters:
[
  "019b9fdf-788f-717e-b2c1-6c8273d0777d"
]
0.53 ms
(2.02%)
1
SELECT t0.id AS id_1, t0.name AS name_2, t0.note AS note_3, t0.course_type AS course_type_4, t0.validity_duration AS validity_duration_5, t0.min_capacity AS min_capacity_6, t0.max_capacity AS max_capacity_7 FROM course t0 WHERE t0.id = ?
Parameters:
[
  "019b9fdf-788f-71c6-b2c1-6c82752cfeac"
]
0.42 ms
(1.60%)
1
SELECT t0.id AS id_1, t0.name AS name_2, t0.max_capacity AS max_capacity_3 FROM location t0
Parameters:
[]
0.36 ms
(1.38%)
1
SELECT t0.id AS id_1, t0.start_at AS start_at_2, t0.end_at AS end_at_3, t0.lesson_id AS lesson_id_4, t0.trainer_id AS trainer_id_5, t0.plan_id AS plan_id_6, t0.location_id AS location_id_7 FROM schedule_event t0 WHERE t0.plan_id = ?
Parameters:
[
  "019ba2ba-731c-75b6-a381-4c2b53a14733"
]

Database Connections

Name Service
default doctrine.dbal.default_connection

Entity Managers

Name Service
default doctrine.orm.default_entity_manager

Second Level Cache

Second Level Cache is not enabled.

Managed Entities

default entity manager

Class Amount of managed objects
App\Entity\Person 11
App\Entity\Lesson 9
App\Entity\Location 8
App\Entity\Course 2
App\Entity\Plan 1

Entities Mapping

Class Mapping errors
App\Entity\Plan No errors.
App\Entity\Person No errors.
App\Entity\Student No errors.
App\Entity\Course
  • The field App\Entity\Course#plannedCourses is on the owning side of a bi-directional relationship, but the specified inversedBy association on the target-entity App\Entity\Course#plannedCourses does not contain the required 'mappedBy: "plannedCourses"' attribute.
  • The field App\Entity\Course#completedCourses is on the owning side of a bi-directional relationship, but the specified inversedBy association on the target-entity App\Entity\Course#completedCourses does not contain the required 'mappedBy: "completedCourses"' attribute.
  • The field App\Entity\Course#validCourses is on the owning side of a bi-directional relationship, but the specified inversedBy association on the target-entity App\Entity\Course#validCourses does not contain the required 'mappedBy: "validCourses"' attribute.
App\Entity\ScheduleEvent
  • The mappings App\Entity\ScheduleEvent#location and App\Entity\Location#scheduleEvents are inconsistent with each other.
App\Entity\Lesson No errors.
App\Entity\CourseGroup No errors.
App\Entity\Trainer No errors.
App\Entity\Item No errors.
App\Entity\CompletedCourse No errors.
App\Entity\Location
  • The association App\Entity\Location#scheduleEvents refers to the owning side field App\Entity\ScheduleEvent#Location which does not exist.
App\Entity\StudentGroup No errors.