https://app.flex-edu.cloud/api/discussion

Query Metrics

16 Database Queries
15 Different statements
51.59 ms Query time
30 Invalid entities

Queries

Group similar statements

# Time Info
1 4.73 ms
SELECT t0.id AS id_1, t0.email AS email_2, t0.roles AS roles_3, t0.password AS password_4, t0.first_name AS first_name_5, t0.last_name AS last_name_6, t0.phone AS phone_7, t0.user_type AS user_type_8, t0.is_verified AS is_verified_9, t0.matricule AS matricule_10, t0.full_name AS full_name_11, t0.last_request_ts AS last_request_ts_12, t0.theme AS theme_13, t0.picture AS picture_14, t0.sexe AS sexe_15, t0.local_phone_lang AS local_phone_lang_16, t0.user_token AS user_token_17, t0.created_at AS created_at_18, t0.updated_at AS updated_at_19, t0.author_id AS author_id_20, t0.editor_id AS editor_id_21, t0.school_id AS school_id_22 FROM `user` t0 WHERE t0.id = ?
Parameters:
[
  863
]
2 1.85 ms
SELECT DISTINCT t0_.id AS id_0 FROM subject s1_ LEFT JOIN `user` u2_ ON s1_.prof_id = u2_.id LEFT JOIN the_class t0_ ON s1_.classe_id = t0_.id WHERE u2_.id = ?
Parameters:
[
  863
]
3 3.41 ms
SELECT c0_.id AS id_0, c0_.created_at AS created_at_1, c0_.updated_at AS updated_at_2, c0_.initiator_id AS initiator_id_3, c0_.recipient_id AS recipient_id_4, c0_.year_id AS year_id_5 FROM chat c0_ LEFT JOIN `user` u1_ ON c0_.initiator_id = u1_.id LEFT JOIN `user` u2_ ON c0_.recipient_id = u2_.id LEFT JOIN school_year s3_ ON c0_.year_id = s3_.id LEFT JOIN message m4_ ON c0_.id = m4_.chat_id WHERE (u1_.id = ? OR u2_.id = ?) AND s3_.active = ? ORDER BY m4_.created_at DESC
Parameters:
[
  863
  863
  1
]
4 2.10 ms
SELECT t0_.id AS id_0, t0_.name AS name_1, t0_.active AS active_2, t0_.slug AS slug_3, t0_.created_at AS created_at_4, t0_.updated_at AS updated_at_5, s1_.id AS id_6, s1_.name AS name_7, s1_.created_at AS created_at_8, s1_.updated_at AS updated_at_9, t0_.section_id AS section_id_10, t0_.author_id AS author_id_11, t0_.editor_id AS editor_id_12, t0_.school_id AS school_id_13, t0_.prof_id AS prof_id_14, t0_.principal_prof_id AS principal_prof_id_15, s1_.author_id AS author_id_16, s1_.editor_id AS editor_id_17, s1_.school_id AS school_id_18 FROM the_class t0_ LEFT JOIN school_section s1_ ON t0_.section_id = s1_.id ORDER BY t0_.name DESC
Parameters:
[]
5 1.05 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.active AS active_3, t0.slug AS slug_4, t0.created_at AS created_at_5, t0.updated_at AS updated_at_6, t0.section_id AS section_id_7, t0.author_id AS author_id_8, t0.editor_id AS editor_id_9, t0.school_id AS school_id_10, t0.prof_id AS prof_id_11, t0.principal_prof_id AS principal_prof_id_12 FROM the_class t0 WHERE t0.school_id = ?
Parameters:
[
  1
]
6 5.23 ms
SELECT d0_.id AS id_0, d0_.created_at AS created_at_1, d0_.updated_at AS updated_at_2, d0_.user_a_id AS user_a_id_3, d0_.user_b_id AS user_b_id_4, d0_.school_id AS school_id_5, d0_.year_id AS year_id_6 FROM discussion d0_ LEFT JOIN school_year s1_ ON d0_.year_id = s1_.id WHERE (d0_.user_a_id = ? OR d0_.user_b_id = ?) AND d0_.school_id = ? AND s1_.active = ? ORDER BY d0_.updated_at DESC
Parameters:
[
  863
  863
  1
  1
]
7 0.77 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.active AS active_3, t0.name_en AS name_en_4, t0.created_at AS created_at_5, t0.updated_at AS updated_at_6, t0.author_id AS author_id_7, t0.editor_id AS editor_id_8 FROM school_year t0 WHERE t0.active = ? LIMIT 1
Parameters:
[
  1
]
8 2.94 ms
SELECT s0_.id AS id_0, s0_.image_name AS image_name_1, s0_.slug AS slug_2, s0_.created_at AS created_at_3, s0_.updated_at AS updated_at_4, s0_.year_id AS year_id_5, s0_.student_id AS student_id_6, s0_.classe_id AS classe_id_7, s0_.school_id AS school_id_8, s0_.scolarity_id AS scolarity_id_9 FROM student_year s0_ LEFT JOIN student s1_ ON s0_.student_id = s1_.id LEFT JOIN school_year s2_ ON s0_.year_id = s2_.id LEFT JOIN school s3_ ON s0_.school_id = s3_.id WHERE s1_.parent_id = ? AND s2_.active = ? AND s3_.id = ?
Parameters:
[
  863
  1
  1
]
9 1.97 ms
SELECT d0_.id AS id_0, d0_.created_at AS created_at_1, d0_.updated_at AS updated_at_2, d0_.classe_id AS classe_id_3, d0_.year_id AS year_id_4, d0_.school_id AS school_id_5 FROM discussion_class d0_ LEFT JOIN school_year s1_ ON d0_.year_id = s1_.id WHERE d0_.classe_id IN (?) AND s1_.active = ?
Parameters:
[
  17
  1
]
10 2.91 ms
SELECT t0.id AS id_1, t0.absence_last_connection_count AS absence_last_connection_count_2, t0.late_last_connection_count AS late_last_connection_count_3, t0.homework_last_connection_count AS homework_last_connection_count_4, t0.note_last_connection_count AS note_last_connection_count_5, t0.blog_last_connection_count AS blog_last_connection_count_6, t0.event_last_connection_count AS event_last_connection_count_7, t0.discussion_message_last_connection_count AS discussion_message_last_connection_count_8, t0.punish_last_connection_count AS punish_last_connection_count_9, t0.doc_info_last_connection_count AS doc_info_last_connection_count_10, t0.message_group_last_connexion_count AS message_group_last_connexion_count_11, t0.created_at AS created_at_12, t0.updated_at AS updated_at_13, t0.user_id AS user_id_14, t0.year_id AS year_id_15 FROM notifications t0 WHERE t0.user_id = ? AND t0.year_id = ? LIMIT 1
Parameters:
[
  863
  3
]
11 3.00 ms
SELECT t0.id AS id_1, t0.message AS message_2, t0.file_name AS file_name_3, t0.created_at AS created_at_4, t0.updated_at AS updated_at_5, t0.discussion_id AS discussion_id_6, t0.author_id AS author_id_7, t0.reply_to_message_id AS reply_to_message_id_8 FROM discussion_class_message t0 WHERE t0.discussion_id = ?
Parameters:
[
  54
]
12 2.84 ms
SELECT t0.id AS id_1, t0.message_count AS message_count_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4, t0.user_id AS user_id_5, t0.discussion_id AS discussion_id_6 FROM discussion_messages_count t0 WHERE t0.user_id = ? AND t0.discussion_id = ? LIMIT 1
Parameters:
[
  863
  54
]
13 0.30 ms
"START TRANSACTION"
Parameters:
[]
14 2.77 ms
INSERT INTO discussion_messages_count (message_count, created_at, updated_at, user_id, discussion_id) VALUES (?, ?, ?, ?, ?)
Parameters:
[
  0
  "2025-12-06 07:22:02"
  "2025-12-06 07:22:02"
  863
  54
]
15 15.05 ms
"COMMIT"
Parameters:
[]
16 0.67 ms
SELECT t0.id AS id_1, t0.message AS message_2, t0.file_name AS file_name_3, t0.created_at AS created_at_4, t0.updated_at AS updated_at_5, t0.discussion_id AS discussion_id_6, t0.author_id AS author_id_7, t0.reply_to_message_id AS reply_to_message_id_8 FROM discussion_class_message t0 WHERE t0.discussion_id = ?
Parameters:
[
  54
]

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.

Entities Mapping

Class Mapping errors
App\Entity\User No errors.
App\Entity\School
  • The mappings App\Entity\School#callNumbers and App\Entity\CallNumber#school are inconsistent with each other.
App\Entity\News
  • The field 'App\Entity\News#newsCategory' has the property type 'App\Entity\NewsCategory' that differs from the metadata field type 'string' returned by the 'string' DBAL type.
App\Entity\Event No errors.
App\Entity\UserYear
  • The mappings App\Entity\UserYear#principalClasses and App\Entity\TheClass#principalProf are inconsistent with each other.
App\Entity\Subject No errors.
App\Entity\Student
  • The mappings App\Entity\Student#punishes and App\Entity\Punish#student are inconsistent with each other.
App\Entity\HomeWork
  • The association App\Entity\HomeWork#classe refers to the inverse side field App\Entity\TheClass#homeWorks which does not exist.
App\Entity\Chat
  • The mappings App\Entity\Chat#recipient and App\Entity\User#chats are inconsistent with each other.
App\Entity\Message
  • The association App\Entity\Message#author refers to the inverse side field App\Entity\UserYear#messages which does not exist.
App\Entity\DocInfo No errors.
App\Entity\Discussion
  • The mappings App\Entity\Discussion#userB and App\Entity\User#discussions are inconsistent with each other.
App\Entity\DiscussionMessage
  • The mappings App\Entity\DiscussionMessage#messageFor and App\Entity\User#discussionMessages are inconsistent with each other.
App\Entity\Notifications
  • The association App\Entity\Notifications#year refers to the inverse side field App\Entity\SchoolYear#notifications which does not exist.
App\Entity\Absence No errors.
App\Entity\CategoryEvent No errors.
App\Entity\ClassYear
  • The association App\Entity\ClassYear#class refers to the inverse side field App\Entity\TheClass#classYears which does not exist.
  • The field App\Entity\ClassYear#chats is on the inverse side of a bi-directional relationship, but the specified mappedBy association on the target-entity App\Entity\Chat#classes does not contain the required 'inversedBy="chats"' attribute.
App\Entity\Exams No errors.
App\Entity\Late No errors.
App\Entity\NewsCategory
  • The association App\Entity\NewsCategory#news refers to the owning side field App\Entity\News#newsCategory which is not defined as association, but as field.
  • The association App\Entity\NewsCategory#news refers to the owning side field App\Entity\News#newsCategory which does not exist.
App\Entity\Note No errors.
App\Entity\SchoolSection No errors.
App\Entity\SchoolYear
  • The mappings App\Entity\SchoolYear#timeTables and App\Entity\TimeTable#year are inconsistent with each other.
App\Entity\SubjectGroup No errors.
App\Entity\TheClass
  • The mappings App\Entity\TheClass#studentsYears and App\Entity\StudentYear#classe are inconsistent with each other.
  • The mappings App\Entity\TheClass#homeworks and App\Entity\HomeWork#classe are inconsistent with each other.
  • The association App\Entity\TheClass#userYears refers to the owning side field App\Entity\UserYear#classes which does not exist.
  • The association App\Entity\TheClass#principalProf refers to the inverse side field App\Entity\UserYear#pricipalClasses which does not exist.
  • The mappings App\Entity\TheClass#timeTables and App\Entity\TimeTable#classe are inconsistent with each other.
App\Entity\Punish
  • The association App\Entity\Punish#student refers to the inverse side field App\Entity\Student#punishDetails which does not exist.
App\Entity\PunishCategory No errors.
App\Entity\DiscussionClassMessage No errors.
App\Entity\Agenda No errors.
App\Entity\ExamAgenda No errors.
App\Entity\SubSequence No errors.
App\Entity\Quarter No errors.
App\Entity\SubNote No errors.
App\Entity\AgendaDay No errors.
App\Entity\AgendaElement No errors.
App\Entity\ExamAgendaDay No errors.
App\Entity\ExamAgendaElement No errors.
App\Entity\Appreciation No errors.
App\Entity\LocalAccount
  • The mappings App\Entity\LocalAccount#account and App\Entity\User#localAccounts are inconsistent with each other.
App\Entity\NewsBookmark
  • The association App\Entity\NewsBookmark#year refers to the inverse side field App\Entity\SchoolYear#newsBookmarks which does not exist.
App\Entity\HomeworkBookmark
  • The association App\Entity\HomeworkBookmark#year refers to the inverse side field App\Entity\SchoolYear#homeworkBookmarks which does not exist.
App\Entity\ScolarityHistory
  • The mappings App\Entity\ScolarityHistory#editor and App\Entity\User#scolarityHistories are inconsistent with each other.
App\Entity\ScolarityHistoryEdition No errors.
App\Entity\JustifyAbsence No errors.
App\Entity\VerbalProcess
  • The mappings App\Entity\VerbalProcess#editor and App\Entity\User#verbalProcesses are inconsistent with each other.
App\Entity\AbsenceDisciplineConcileConfig
  • The mappings App\Entity\AbsenceDisciplineConcileConfig#editor and App\Entity\User#absenceDisciplineConcileConfigs are inconsistent with each other.
App\Entity\PrimaryNote
  • The mappings App\Entity\PrimaryNote#editor and App\Entity\User#primaryNotes are inconsistent with each other.
App\Entity\VerbalProcessCategory
  • The association App\Entity\VerbalProcessCategory#verbalProcess refers to the owning side field App\Entity\VerbalProcess#verbalProcessCategory which does not exist.
App\Entity\UserAndroidToken No errors.
App\Entity\UserIphoneToken No errors.
App\Entity\AbsenceBlameConfig No errors.
App\Entity\AbsenceWarningConfig No errors.
App\Entity\AbsencePunishConfig No errors.
App\Entity\AbsenceExclusionConfig No errors.
App\Entity\GlobalDisciplineEnabledConfig No errors.
App\Entity\AbsenceRetainedConfig No errors.
App\Entity\DisciplineConcile
  • The mappings App\Entity\DisciplineConcile#editor and App\Entity\User#disciplineConciles are inconsistent with each other.
App\Entity\UserNotifications No errors.
App\Entity\TimeTable
  • The association App\Entity\TimeTable#parent refers to the inverse side field App\Entity\TimeTableClass#timeTables which does not exist.
App\Entity\DiscussionMessagesCount No errors.
App\Entity\StudentYear
  • The association App\Entity\StudentYear#classe refers to the inverse side field App\Entity\TheClass#studentYears which does not exist.
App\Entity\DiscussionClass No errors.
App\Entity\Scolarity
  • The association App\Entity\Scolarity#year refers to the inverse side field App\Entity\SchoolYear#scolarities which does not exist.
  • The association App\Entity\Scolarity#author refers to the inverse side field App\Entity\User#scolarities which does not exist.
App\Entity\DisciplineWarning No errors.
App\Entity\DisciplineBlame No errors.
App\Entity\DisciplineExclusion No errors.
App\Entity\ParentNote No errors.
App\Entity\DisciplineRetained No errors.
App\Entity\PrimaryParentNote No errors.
App\Entity\DisciplinePunish No errors.
App\Entity\Blame No errors.
App\Entity\Warning No errors.
App\Entity\Retained No errors.
App\Entity\StudentPreInscription No errors.
App\Entity\TimeTableClass No errors.
App\Entity\HomeWorkYear
  • The association App\Entity\HomeWorkYear#homeWork refers to the inverse side field App\Entity\HomeWork#homeWorkYears which does not exist.
  • The association App\Entity\HomeWorkYear#classe refers to the inverse side field App\Entity\TheClass#homeWorkYears which does not exist.
App\Entity\GlobalQuarter No errors.
App\Entity\DefinitiveExclusion No errors.
App\Entity\WarningBlameConfig
  • The association App\Entity\WarningBlameConfig#school refers to the inverse side field App\Entity\School#warningBlameConfig which does not exist.
App\Entity\WarningDefinitiveExlusionConfig
  • The association App\Entity\WarningDefinitiveExlusionConfig#school refers to the inverse side field App\Entity\School#warningDefinitiveExlusionConfig which does not exist.
App\Entity\GlobalDisciplineConfig No errors.
App\Entity\BlamePunishConfig No errors.
App\Entity\WarningPunishConfig No errors.
App\Entity\PunishRetainedConfig No errors.
App\Entity\PunishWarningConfig No errors.
App\Entity\PunishBlameConfig No errors.
App\Entity\PunishExclusionConfig No errors.
App\Entity\SchoolYearInfos No errors.
App\Entity\HonnorTableLimitMoy No errors.
App\Entity\CallNumber No errors.
App\Entity\StudentScolarity No errors.