GET https://cv.sonacos.ma/fr/declaration/details/382665

Query Metrics

19 Database Queries
11 Different statements
6.91 ms Query time
7 Invalid entities
21 Managed entities

Grouped Statements

Show all queries

Time Count Info
1.48 ms
(21.42%)
5
SELECT t0.id AS id_1, t0.nom AS nom_2, t0.type AS type_3, t0.espece_id AS espece_id_4 FROM produit t0 WHERE t0.id = ?
Parameters:
[
  335
]
0.85 ms
(12.32%)
3
SELECT t0.id AS id_1, t0.name AS name_2, t0.is_pdt AS is_pdt_3 FROM category t0 WHERE t0.id = ?
Parameters:
[
  5
]
0.82 ms
(11.90%)
3
SELECT t0.id AS id_1, t0.nom AS nom_2 FROM espece t0 WHERE t0.id = ?
Parameters:
[
  3
]
0.78 ms
(11.24%)
1
SELECT d0_.id AS id_0, d0_.created AS created_1, d0_.status AS status_2, d0_.total_clients AS total_clients_3, d0_.user_id AS user_id_4, d0_.point_vente_id AS point_vente_id_5, d0_.region_id AS region_id_6 FROM declaration_vente d0_ WHERE d0_.point_vente_id = ? AND d0_.status = 1 AND d0_.created < ? ORDER BY d0_.created ASC
Parameters:
[
  938
  "2026-01-18 00:00:00"
]
0.70 ms
(10.11%)
1
SELECT t0.id AS id_1, t0.created AS created_2, t0.status AS status_3, t0.total_clients AS total_clients_4, t0.user_id AS user_id_5, t0.point_vente_id AS point_vente_id_6, t0.region_id AS region_id_7 FROM declaration_vente t0 WHERE t0.point_vente_id = ? AND t0.created = ? LIMIT 1
Parameters:
[
  938
  "2026-01-17"
]
0.52 ms
(7.50%)
1
SELECT t0.id AS id_1, t0.email AS email_2, t0.roles AS roles_3, t0.password AS password_4, t0.usercode AS usercode_5, t0.nom AS nom_6, t0.prenom AS prenom_7, t0.telephone AS telephone_8, t0.lastvisit AS lastvisit_9, t0.lastip AS lastip_10, t0.password_request AS password_request_11, t0.password_request_at AS password_request_at_12, t0.password_updated_at AS password_updated_at_13, t0.point_vente_id AS point_vente_id_14, t0.region_id AS region_id_15 FROM `user` t0 WHERE t0.id = ?
Parameters:
[
  1078
]
0.45 ms
(6.54%)
1
SELECT t0.id AS id_1, t0.type AS type_2, t0.quantite AS quantite_3, t0.created_at AS created_at_4, t0.region_name AS region_name_5, t0.point_vente_name AS point_vente_name_6, t0.category_name AS category_name_7, t0.produit_name AS produit_name_8, t0.espece_name AS espece_name_9, t0.declaration_date AS declaration_date_10, t0.produit_id AS produit_id_11, t0.category_id AS category_id_12, t0.declaration_vente_id AS declaration_vente_id_13, t0.point_vente_id AS point_vente_id_14, t0.user_id AS user_id_15, t0.region_id AS region_id_16 FROM vente t0 WHERE t0.declaration_vente_id = ?
Parameters:
[
  382665
]
0.39 ms
(5.59%)
1
SELECT t0.id AS id_1, t0.created AS created_2, t0.validated AS validated_3, t0.status AS status_4, t0.created_by_id AS created_by_id_5, t0.validated_by_id AS validated_by_id_6, t0.point_vente_id AS point_vente_id_7, t0.declaration_id AS declaration_id_8, t0.region_id AS region_id_9 FROM annulation_vente t0 WHERE t0.status = ? AND t0.declaration_id = ? LIMIT 1
Parameters:
[
  0
  382665
]
0.32 ms
(4.70%)
1
SELECT t0.id AS id_1, t0.niveau AS niveau_2, t0.produit_id AS produit_id_3, t0.category_id AS category_id_4, t0.declaration_id AS declaration_id_5 FROM produit_demande t0 WHERE t0.declaration_id = ?
Parameters:
[
  382665
]
0.30 ms
(4.37%)
1
SELECT t0.id AS id_1, t0.created AS created_2, t0.status AS status_3, t0.total_clients AS total_clients_4, t0.user_id AS user_id_5, t0.point_vente_id AS point_vente_id_6, t0.region_id AS region_id_7 FROM declaration_vente t0 WHERE t0.id = ?
Parameters:
[
  382665
]
0.30 ms
(4.30%)
1
SELECT t0.id AS id_1, t0.name AS name_2, t0.address AS address_3, t0.libelle AS libelle_4, t0.adresse AS adresse_5, t0.contrat AS contrat_6, t0.region_id AS region_id_7 FROM point_vente t0 WHERE t0.id = ?
Parameters:
[
  938
]

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\Vente 5
App\Entity\Produit 5
App\Entity\Category 3
App\Entity\Espece 3
App\Entity\DeclarationVente 2
App\Entity\User 1
App\Entity\PointVente 1
App\Entity\Region 1

Entities Mapping

Class Mapping errors
App\Entity\User
  • The association App\Entity\User#pointVente refers to the inverse side field App\Entity\PointVente#user which does not exist.
  • The association App\Entity\User#region refers to the inverse side field App\Entity\Region#user which does not exist.
  • The mappings App\Entity\User#validatationsAnnulationVente and App\Entity\AnnulationVente#validatedBy are inconsistent with each other.
App\Entity\PointVente
  • The mappings App\Entity\PointVente#users and App\Entity\User#pointVente are inconsistent with each other.
App\Entity\Region
  • The mappings App\Entity\Region#users and App\Entity\User#region are inconsistent with each other.
App\Entity\DeclarationVente No errors.
App\Entity\DeclarationCommande No errors.
App\Entity\Vente
  • The association App\Entity\Vente#produit refers to the inverse side field App\Entity\Produit#ventes which does not exist.
App\Entity\Commande No errors.
App\Entity\AnnulationVente
  • The association App\Entity\AnnulationVente#validatedBy refers to the inverse side field App\Entity\User#validatationsAnnualtion which does not exist.
App\Entity\PasswordRequest No errors.
App\Entity\Prix No errors.
App\Entity\Affectation No errors.
App\Entity\DeclarationVenteHistorique
  • The association App\Entity\DeclarationVenteHistorique#user refers to the inverse side field App\Entity\User#decalarations which does not exist.
  • The association App\Entity\DeclarationVenteHistorique#ventes refers to the owning side field App\Entity\Vente#declarationVenteHistorique which does not exist.
  • The association App\Entity\DeclarationVenteHistorique#pointVente refers to the inverse side field App\Entity\PointVente#declarationVenteHistoriques which does not exist.
  • The association App\Entity\DeclarationVenteHistorique#region refers to the inverse side field App\Entity\Region#declarationVenteHistoriques which does not exist.
App\Entity\ProduitDemande
  • The association App\Entity\ProduitDemande#produit refers to the inverse side field App\Entity\Produit#demandes which does not exist.
App\Entity\Produit No errors.
App\Entity\Category No errors.
App\Entity\Espece No errors.