POST https://cv.sonacos.ma/fr/vente/372533/ajout/engrais

Query Metrics

8 Database Queries
8 Different statements
8.55 ms Query time
7 Invalid entities
15 Managed entities

Queries

Group similar statements

# Time Info
1 0.54 ms
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:
[
  118
]
2 0.32 ms
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:
[
  "372533"
]
3 0.54 ms
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.type = ?
Parameters:
[
  "Engrais"
]
4 0.28 ms
SELECT t0.id AS id_1, t0.nom AS nom_2, t0.code AS code_3 FROM region t0 WHERE t0.id = ?
Parameters:
[
  15
]
5 0.30 ms
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:
[
  687
]
6 0.15 ms
"START TRANSACTION"
Parameters:
[]
7 0.39 ms
INSERT INTO vente (type, quantite, created_at, region_name, point_vente_name, category_name, produit_name, espece_name, declaration_date, produit_id, category_id, declaration_vente_id, point_vente_id, user_id, region_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Parameters:
[
  "Engrais"
  "12"
  "2026-01-18 20:47:33"
  "Khmiss Zemamra"
  "ZV15"
  null
  "NPK102810"
  null
  "2025-11-14"
  18
  null
  372533
  687
  118
  15
]
8 6.01 ms
"COMMIT"
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\Entity\Produit 10
App\Entity\User 1
App\Entity\PointVente 1
App\Entity\Region 1
App\Entity\DeclarationVente 1
App\Entity\Vente 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\Espece No errors.
App\Entity\Category No errors.