http://drh-fcz.ma/paie/stc/app_stc_employe?search=Q297318

Query Metrics

2 Database Queries
2 Different statements
13.58 ms Query time
2 Invalid entities

Grouped Statements

Show all queries

Time Count Info
12.99 ms
(95.67%)
1
SELECT p0_.id AS id_0, p0_.cin AS cin_1, l1_.code AS code_2, l2_.id AS id_3, p0_.nom AS nom_4, p0_.prenom AS prenom_5, p3_.id AS id_6, p4_.id AS id_7 FROM pemploye p0_ INNER JOIN lcontract l2_ ON (p0_.id = l2_.employe_id AND l2_.id = (SELECT MAX(l5_.id) AS sclr_8 FROM lcontract l5_ INNER JOIN pnature_contract p6_ ON l5_.pnature_contract_id = p6_.id WHERE l5_.employe_id = p0_.id AND p6_.id IN (1, 18))) INNER JOIN pnature_contract p4_ ON l2_.pnature_contract_id = p4_.id INNER JOIN pdossier p3_ ON l2_.dossier_id = p3_.id LEFT JOIN lrib l1_ ON l2_.id = l1_.contact_id_id WHERE p0_.active = ? AND p0_.stc = ? AND p4_.id IN (1, 18) AND (p0_.nom LIKE ? OR p0_.prenom LIKE ? OR p0_.cin LIKE ?) LIMIT 10
Parameters:
[
  0
  0
  "%Q297318%"
  "%Q297318%"
  "%Q297318%"
]
0.59 ms
(4.33%)
1
SELECT t0.id AS id_1, t0.username AS username_2, t0.roles AS roles_3, t0.password AS password_4, t0.nom AS nom_5, t0.prenom AS prenom_6, t0.enable AS enable_7, t0.created AS created_8, t0.email AS email_9, t0.updated AS updated_10, t0.user_updated_id AS user_updated_id_11, t0.dossier_responsable_id AS dossier_responsable_id_12 FROM users t0 WHERE t0.id = ?
Parameters:
[
  3
]

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\Users No errors.
App\Entity\PDossier No errors.
App\Entity\HonoraireDetFixe No errors.
App\Entity\TCnssA00 No errors.
App\Entity\PNotification No errors.
App\Entity\Pemploye
  • The association App\Entity\Pemploye#situation_familiale_id refers to the inverse side field App\Entity\PsituationFamiliale#code which does not exist.
  • The field App\Entity\Pemploye#contracts is on the inverse side of a bi-directional relationship, but the specified mappedBy association on the target-entity App\Entity\LContract#employe does not contain the required 'inversedBy="contracts"' attribute.
App\Entity\LContract
  • The mappings App\Entity\LContract#lmatriculationCotis and App\Entity\LmatriculationCoti#contract_id are inconsistent with each other.
  • The mappings App\Entity\LContract#fonction and App\Entity\Pfonction#lContracts are inconsistent with each other.
  • The association App\Entity\LContract#tCnssA02s refers to the owning side field App\Entity\TCnssA02#LContract which does not exist.
App\Entity\PnatureContract No errors.
App\Entity\Lrib No errors.