GET https://gestionetudes.ci.edu.gn/teacher/students

Query Metrics

12 Database Queries
12 Different statements
9.15 ms Query time
2 Invalid entities
256 Managed entities

Queries

Group similar statements

# Time Info
1 0.52 ms
SELECT t0.id AS id_3, t0.matricule AS matricule_4, t0.email AS email_5, t0.first_name AS first_name_6, t0.last_name AS last_name_7, t0.gender AS gender_8, t0.roles AS roles_9, t0.password AS password_10, t0.birth_date AS birth_date_11, t0.phone AS phone_12, t0.language AS language_13, t0.theme AS theme_14, t0.notification_preferences AS notification_preferences_15, t0.activation_token AS activation_token_16, t0.is_activated AS is_activated_17, t0.is_profile_complete AS is_profile_complete_18, t0.reset_token AS reset_token_19, t0.type, t1.ine AS ine_20, t1.dad AS dad_21, t1.mum AS mum_22, t1.birthday AS birthday_23, t1.place_of_birth AS place_of_birth_24, t1.department AS department_25, t1.status AS status_26, t1.cohorte AS cohorte_27, t1.updated_at AS updated_at_28, t1.profile_photo AS profile_photo_29, t1.bio AS bio_30, t1.level_id AS level_id_31, t2.teacher_role AS teacher_role_32, t2.cv AS cv_33, t2.status AS status_34, t2.updated_at AS updated_at_35, t2.experience_years AS experience_years_36, t2.has_phd AS has_phd_37, t2.hired_at AS hired_at_38, t2.profile_photo AS profile_photo_39, t2.bio AS bio_40, t2.managed_department_id AS managed_department_id_41, t2.grade_id AS grade_id_42 FROM user t0 LEFT JOIN students t1 ON t0.id = t1.id LEFT JOIN teachers t2 ON t0.id = t2.id WHERE t0.id = ?
Parameters:
[
  1
]
2 0.18 ms
SELECT d0_.id AS id_0, d0_.name AS name_1, d0_.code AS code_2, d0_.created_at AS created_at_3, d0_.updated_at AS updated_at_4, d0_.faculty_id AS faculty_id_5 FROM departments d0_ ORDER BY d0_.name ASC
Parameters:
[]
3 0.17 ms
SELECT l0_.id AS id_0, l0_.cycle AS cycle_1, l0_.number AS number_2, l0_.created_at AS created_at_3, l0_.updated_at AS updated_at_4, l0_.department_id AS department_id_5 FROM levels l0_ ORDER BY l0_.cycle ASC, l0_.number ASC
Parameters:
[]
4 0.69 ms
SELECT c0_.id AS id_0, c0_.uuid AS uuid_1, c0_.code AS code_2, c0_.name AS name_3, c0_.description AS description_4, c0_.credits AS credits_5, c0_.created_at AS created_at_6, c0_.updated_at AS updated_at_7, c0_.department_id AS department_id_8, c0_.teaching_unit_id AS teaching_unit_id_9, c0_.semester_id AS semester_id_10, c0_.teacher_id AS teacher_id_11, c0_.level_id AS level_id_12 FROM courses c0_ ORDER BY c0_.name ASC
Parameters:
[]
5 0.89 ms
SELECT u0_.id AS id_0, u0_.matricule AS matricule_1, u0_.email AS email_2, u0_.first_name AS first_name_3, u0_.last_name AS last_name_4, u0_.gender AS gender_5, u0_.roles AS roles_6, u0_.password AS password_7, u0_.birth_date AS birth_date_8, u0_.phone AS phone_9, u0_.language AS language_10, u0_.theme AS theme_11, u0_.notification_preferences AS notification_preferences_12, u0_.activation_token AS activation_token_13, u0_.is_activated AS is_activated_14, u0_.is_profile_complete AS is_profile_complete_15, u0_.reset_token AS reset_token_16, t1_.teacher_role AS teacher_role_17, t1_.cv AS cv_18, t1_.status AS status_19, t1_.updated_at AS updated_at_20, t1_.experience_years AS experience_years_21, t1_.has_phd AS has_phd_22, t1_.hired_at AS hired_at_23, t1_.profile_photo AS profile_photo_24, t1_.bio AS bio_25, u0_.type AS type_26, t1_.managed_department_id AS managed_department_id_27, t1_.grade_id AS grade_id_28 FROM teachers t1_ INNER JOIN user u0_ ON t1_.id = u0_.id WHERE t1_.status = ? ORDER BY u0_.last_name ASC
Parameters:
[
  "active"
]
6 0.83 ms
SELECT u0_.id AS id_0, u0_.matricule AS matricule_1, u0_.email AS email_2, u0_.first_name AS first_name_3, u0_.last_name AS last_name_4, u0_.gender AS gender_5, u0_.roles AS roles_6, u0_.password AS password_7, u0_.birth_date AS birth_date_8, u0_.phone AS phone_9, u0_.language AS language_10, u0_.theme AS theme_11, u0_.notification_preferences AS notification_preferences_12, u0_.activation_token AS activation_token_13, u0_.is_activated AS is_activated_14, u0_.is_profile_complete AS is_profile_complete_15, u0_.reset_token AS reset_token_16, s1_.ine AS ine_17, s1_.dad AS dad_18, s1_.mum AS mum_19, s1_.birthday AS birthday_20, s1_.place_of_birth AS place_of_birth_21, s1_.department AS department_22, s1_.status AS status_23, s1_.cohorte AS cohorte_24, s1_.updated_at AS updated_at_25, s1_.profile_photo AS profile_photo_26, s1_.bio AS bio_27, l2_.id AS id_28, l2_.cycle AS cycle_29, l2_.number AS number_30, l2_.created_at AS created_at_31, l2_.updated_at AS updated_at_32, d3_.id AS id_33, d3_.name AS name_34, d3_.code AS code_35, d3_.created_at AS created_at_36, d3_.updated_at AS updated_at_37, u0_.type AS type_38, s1_.level_id AS level_id_39, l2_.department_id AS department_id_40, d3_.faculty_id AS faculty_id_41 FROM students s1_ INNER JOIN user u0_ ON s1_.id = u0_.id LEFT JOIN levels l2_ ON s1_.level_id = l2_.id LEFT JOIN departments d3_ ON l2_.department_id = d3_.id ORDER BY u0_.last_name ASC, u0_.first_name ASC LIMIT 20
Parameters:
[]
7 0.76 ms
SELECT COUNT(u0_.id) AS sclr_0 FROM students s1_ INNER JOIN user u0_ ON s1_.id = u0_.id LEFT JOIN levels l2_ ON s1_.level_id = l2_.id LEFT JOIN departments d3_ ON l2_.department_id = d3_.id ORDER BY u0_.last_name ASC, u0_.first_name ASC
Parameters:
[]
8 0.72 ms
SELECT COUNT(u0_.id) AS sclr_0 FROM students s1_ INNER JOIN user u0_ ON s1_.id = u0_.id
Parameters:
[]
9 1.00 ms
SELECT u0_.gender AS gender_0, COUNT(u0_.id) AS sclr_1 FROM students s1_ INNER JOIN user u0_ ON s1_.id = u0_.id GROUP BY u0_.gender
Parameters:
[]
10 1.06 ms
SELECT s0_.status AS status_0, COUNT(u1_.id) AS sclr_1 FROM students s0_ INNER JOIN user u1_ ON s0_.id = u1_.id GROUP BY s0_.status
Parameters:
[]
11 1.51 ms
SELECT d0_.name AS name_0, COUNT(u1_.id) AS sclr_1 FROM students s2_ INNER JOIN user u1_ ON s2_.id = u1_.id LEFT JOIN levels l3_ ON s2_.level_id = l3_.id LEFT JOIN departments d0_ ON l3_.department_id = d0_.id WHERE d0_.name IS NOT NULL GROUP BY d0_.name ORDER BY sclr_1 DESC
Parameters:
[]
12 0.83 ms
SELECT CONCAT(l0_.cycle, ' ', l0_.number) AS sclr_0, COUNT(u1_.id) AS sclr_1 FROM students s2_ INNER JOIN user u1_ ON s2_.id = u1_.id LEFT JOIN levels l0_ ON s2_.level_id = l0_.id WHERE l0_.cycle IS NOT NULL GROUP BY l0_.cycle, l0_.number ORDER BY l0_.cycle ASC, l0_.number ASC
Parameters:
[]

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\Course\Domain\Entity\Course 156
App\Core\Domain\Model\User\User 44
App\Course\Domain\Entity\TeachingUnit 37
App\Course\Domain\Entity\Semester 10
App\Faculty\Domain\Entity\Level 6
App\Faculty\Domain\Entity\Department 2
App\Faculty\Domain\Entity\Faculty 1

Entities Mapping

Class Mapping errors
App\Core\Domain\Model\User\User No errors.
App\Student\Domain\Entity\Student No errors.
App\Teacher\Domain\Entity\Teacher No errors.
App\Faculty\Domain\Entity\Level No errors.
App\Faculty\Domain\Entity\Department
  • The field App\Faculty\Domain\Entity\Department#courses is on the inverse side of a bi-directional relationship, but the specified mappedBy association on the target-entity App\Course\Domain\Entity\Course#department does not contain the required 'inversedBy="courses"' attribute.
App\Teacher\Domain\Entity\TeacherGrade No errors.
App\Course\Domain\Entity\Course No errors.
App\Faculty\Domain\Entity\Faculty No errors.
App\Course\Domain\Entity\TeachingUnit No errors.
App\Course\Domain\Entity\Semester No errors.
App\Grade\Domain\Entity\Grade
  • The field App\Grade\Domain\Entity\Grade#workflow is on the inverse side of a bi-directional relationship, but the specified mappedBy association on the target-entity App\Grade\Domain\Entity\GradeWorkflow#grade does not contain the required 'inversedBy="workflow"' attribute.
App\Student\Domain\Entity\StudentCourseEnrollment No errors.