https://glapp.ch/piece/new Return to referer URL

Query Metrics

59 Database Queries
11 Different statements
18.98 ms Query time
1 Invalid entities

Queries

Group similar statements

# Time Info
1 0.35 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.tel AS tel_7, t0.role AS role_8, t0.avatar AS avatar_9, t0.active AS active_10, t0.token AS token_11, t0.created_at AS created_at_12, t0.updated_at AS updated_at_13 FROM user t0 WHERE t0.id = ?
Parameters:
[
  2
]
2 0.24 ms
SELECT t0.id AS id_1, t0.tva AS tva_2, t0.name AS name_3, t0.address AS address_4, t0.tel AS tel_5, t0.email AS email_6, t0.web AS web_7, t0.code_tva AS code_tva_8, t0.logo AS logo_9, t0.tva_active AS tva_active_10, t0.updated_at AS updated_at_11 FROM configuration t0 WHERE t0.id = ?
Parameters:
[
  1
]
3 0.31 ms
SELECT t0.id AS id_1, t0.code AS code_2, t0.name AS name_3, t0.sell_ht AS sell_ht_4, t0.buy_ht AS buy_ht_5, t0.stock AS stock_6, t0.created_at AS created_at_7, t0.updated_at AS updated_at_8, t0.photo AS photo_9, t0.taille_poids AS taille_poids_10, t0.marque AS marque_11, t0.date_expiration AS date_expiration_12, t0.marge AS marge_13, t0.barecode AS barecode_14 FROM product t0 ORDER BY t0.name ASC
Parameters:
[]
4 0.25 ms
SELECT t0.id AS id_1, t0.stock AS stock_2, t0.date_expiration AS date_expiration_3, t0.product_id AS product_id_4 FROM lot t0 WHERE t0.product_id = ?
Parameters:
[
  1637
]
5 0.19 ms
SELECT t0.id AS id_1, t0.stock AS stock_2, t0.date_expiration AS date_expiration_3, t0.product_id AS product_id_4 FROM lot t0 WHERE t0.product_id = ?
Parameters:
[
  1633
]
6 0.15 ms
SELECT t0.id AS id_1, t0.stock AS stock_2, t0.date_expiration AS date_expiration_3, t0.product_id AS product_id_4 FROM lot t0 WHERE t0.product_id = ?
Parameters:
[
  1632
]
7 0.15 ms
SELECT t0.id AS id_1, t0.stock AS stock_2, t0.date_expiration AS date_expiration_3, t0.product_id AS product_id_4 FROM lot t0 WHERE t0.product_id = ?
Parameters:
[
  1635
]
8 0.15 ms
SELECT t0.id AS id_1, t0.stock AS stock_2, t0.date_expiration AS date_expiration_3, t0.product_id AS product_id_4 FROM lot t0 WHERE t0.product_id = ?
Parameters:
[
  1634
]
9 0.15 ms
SELECT t0.id AS id_1, t0.stock AS stock_2, t0.date_expiration AS date_expiration_3, t0.product_id AS product_id_4 FROM lot t0 WHERE t0.product_id = ?
Parameters:
[
  1636
]
10 0.15 ms
SELECT t0.id AS id_1, t0.stock AS stock_2, t0.date_expiration AS date_expiration_3, t0.product_id AS product_id_4 FROM lot t0 WHERE t0.product_id = ?
Parameters:
[
  1639
]
11 0.16 ms
SELECT t0.id AS id_1, t0.stock AS stock_2, t0.date_expiration AS date_expiration_3, t0.product_id AS product_id_4 FROM lot t0 WHERE t0.product_id = ?
Parameters:
[
  1641
]
12 0.14 ms
SELECT t0.id AS id_1, t0.stock AS stock_2, t0.date_expiration AS date_expiration_3, t0.product_id AS product_id_4 FROM lot t0 WHERE t0.product_id = ?
Parameters:
[
  1661
]
13 0.14 ms
SELECT t0.id AS id_1, t0.stock AS stock_2, t0.date_expiration AS date_expiration_3, t0.product_id AS product_id_4 FROM lot t0 WHERE t0.product_id = ?
Parameters:
[
  1660
]
14 0.14 ms
SELECT t0.id AS id_1, t0.stock AS stock_2, t0.date_expiration AS date_expiration_3, t0.product_id AS product_id_4 FROM lot t0 WHERE t0.product_id = ?
Parameters:
[
  1625
]
15 0.14 ms
SELECT t0.id AS id_1, t0.stock AS stock_2, t0.date_expiration AS date_expiration_3, t0.product_id AS product_id_4 FROM lot t0 WHERE t0.product_id = ?
Parameters:
[
  1656
]
16 0.14 ms
SELECT t0.id AS id_1, t0.stock AS stock_2, t0.date_expiration AS date_expiration_3, t0.product_id AS product_id_4 FROM lot t0 WHERE t0.product_id = ?
Parameters:
[
  1659
]
17 0.14 ms
SELECT t0.id AS id_1, t0.stock AS stock_2, t0.date_expiration AS date_expiration_3, t0.product_id AS product_id_4 FROM lot t0 WHERE t0.product_id = ?
Parameters:
[
  1638
]
18 0.14 ms
SELECT t0.id AS id_1, t0.stock AS stock_2, t0.date_expiration AS date_expiration_3, t0.product_id AS product_id_4 FROM lot t0 WHERE t0.product_id = ?
Parameters:
[
  1631
]
19 0.15 ms
SELECT t0.id AS id_1, t0.stock AS stock_2, t0.date_expiration AS date_expiration_3, t0.product_id AS product_id_4 FROM lot t0 WHERE t0.product_id = ?
Parameters:
[
  1648
]
20 0.14 ms
SELECT t0.id AS id_1, t0.stock AS stock_2, t0.date_expiration AS date_expiration_3, t0.product_id AS product_id_4 FROM lot t0 WHERE t0.product_id = ?
Parameters:
[
  1652
]
21 0.14 ms
SELECT t0.id AS id_1, t0.stock AS stock_2, t0.date_expiration AS date_expiration_3, t0.product_id AS product_id_4 FROM lot t0 WHERE t0.product_id = ?
Parameters:
[
  1649
]
22 0.14 ms
SELECT t0.id AS id_1, t0.stock AS stock_2, t0.date_expiration AS date_expiration_3, t0.product_id AS product_id_4 FROM lot t0 WHERE t0.product_id = ?
Parameters:
[
  1658
]
23 0.20 ms
SELECT t0.id AS id_1, t0.stock AS stock_2, t0.date_expiration AS date_expiration_3, t0.product_id AS product_id_4 FROM lot t0 WHERE t0.product_id = ?
Parameters:
[
  1629
]
24 0.15 ms
SELECT t0.id AS id_1, t0.stock AS stock_2, t0.date_expiration AS date_expiration_3, t0.product_id AS product_id_4 FROM lot t0 WHERE t0.product_id = ?
Parameters:
[
  1630
]
25 0.14 ms
SELECT t0.id AS id_1, t0.stock AS stock_2, t0.date_expiration AS date_expiration_3, t0.product_id AS product_id_4 FROM lot t0 WHERE t0.product_id = ?
Parameters:
[
  1655
]
26 0.14 ms
SELECT t0.id AS id_1, t0.stock AS stock_2, t0.date_expiration AS date_expiration_3, t0.product_id AS product_id_4 FROM lot t0 WHERE t0.product_id = ?
Parameters:
[
  1628
]
27 0.14 ms
SELECT t0.id AS id_1, t0.stock AS stock_2, t0.date_expiration AS date_expiration_3, t0.product_id AS product_id_4 FROM lot t0 WHERE t0.product_id = ?
Parameters:
[
  1650
]
28 0.15 ms
SELECT t0.id AS id_1, t0.stock AS stock_2, t0.date_expiration AS date_expiration_3, t0.product_id AS product_id_4 FROM lot t0 WHERE t0.product_id = ?
Parameters:
[
  1617
]
29 0.14 ms
SELECT t0.id AS id_1, t0.stock AS stock_2, t0.date_expiration AS date_expiration_3, t0.product_id AS product_id_4 FROM lot t0 WHERE t0.product_id = ?
Parameters:
[
  1619
]
30 0.14 ms
SELECT t0.id AS id_1, t0.stock AS stock_2, t0.date_expiration AS date_expiration_3, t0.product_id AS product_id_4 FROM lot t0 WHERE t0.product_id = ?
Parameters:
[
  1644
]
31 0.14 ms
SELECT t0.id AS id_1, t0.stock AS stock_2, t0.date_expiration AS date_expiration_3, t0.product_id AS product_id_4 FROM lot t0 WHERE t0.product_id = ?
Parameters:
[
  1651
]
32 0.14 ms
SELECT t0.id AS id_1, t0.stock AS stock_2, t0.date_expiration AS date_expiration_3, t0.product_id AS product_id_4 FROM lot t0 WHERE t0.product_id = ?
Parameters:
[
  1647
]
33 0.14 ms
SELECT t0.id AS id_1, t0.stock AS stock_2, t0.date_expiration AS date_expiration_3, t0.product_id AS product_id_4 FROM lot t0 WHERE t0.product_id = ?
Parameters:
[
  1646
]
34 0.14 ms
SELECT t0.id AS id_1, t0.stock AS stock_2, t0.date_expiration AS date_expiration_3, t0.product_id AS product_id_4 FROM lot t0 WHERE t0.product_id = ?
Parameters:
[
  1645
]
35 0.14 ms
SELECT t0.id AS id_1, t0.stock AS stock_2, t0.date_expiration AS date_expiration_3, t0.product_id AS product_id_4 FROM lot t0 WHERE t0.product_id = ?
Parameters:
[
  1657
]
36 0.14 ms
SELECT t0.id AS id_1, t0.stock AS stock_2, t0.date_expiration AS date_expiration_3, t0.product_id AS product_id_4 FROM lot t0 WHERE t0.product_id = ?
Parameters:
[
  1618
]
37 0.15 ms
SELECT t0.id AS id_1, t0.stock AS stock_2, t0.date_expiration AS date_expiration_3, t0.product_id AS product_id_4 FROM lot t0 WHERE t0.product_id = ?
Parameters:
[
  1620
]
38 0.14 ms
SELECT t0.id AS id_1, t0.stock AS stock_2, t0.date_expiration AS date_expiration_3, t0.product_id AS product_id_4 FROM lot t0 WHERE t0.product_id = ?
Parameters:
[
  1640
]
39 0.14 ms
SELECT t0.id AS id_1, t0.stock AS stock_2, t0.date_expiration AS date_expiration_3, t0.product_id AS product_id_4 FROM lot t0 WHERE t0.product_id = ?
Parameters:
[
  1662
]
40 0.14 ms
SELECT t0.id AS id_1, t0.stock AS stock_2, t0.date_expiration AS date_expiration_3, t0.product_id AS product_id_4 FROM lot t0 WHERE t0.product_id = ?
Parameters:
[
  1616
]
41 0.14 ms
SELECT t0.id AS id_1, t0.stock AS stock_2, t0.date_expiration AS date_expiration_3, t0.product_id AS product_id_4 FROM lot t0 WHERE t0.product_id = ?
Parameters:
[
  1654
]
42 0.14 ms
SELECT t0.id AS id_1, t0.stock AS stock_2, t0.date_expiration AS date_expiration_3, t0.product_id AS product_id_4 FROM lot t0 WHERE t0.product_id = ?
Parameters:
[
  1653
]
43 0.14 ms
SELECT t0.id AS id_1, t0.stock AS stock_2, t0.date_expiration AS date_expiration_3, t0.product_id AS product_id_4 FROM lot t0 WHERE t0.product_id = ?
Parameters:
[
  1643
]
44 0.27 ms
SELECT t0.id AS id_1, t0.code AS code_2, t0.name AS name_3, t0.sell_ht AS sell_ht_4, t0.buy_ht AS buy_ht_5, t0.stock AS stock_6, t0.created_at AS created_at_7, t0.updated_at AS updated_at_8, t0.photo AS photo_9, t0.taille_poids AS taille_poids_10, t0.marque AS marque_11, t0.date_expiration AS date_expiration_12, t0.marge AS marge_13, t0.barecode AS barecode_14 FROM product t0 ORDER BY t0.name ASC
Parameters:
[]
45 0.30 ms
SELECT c0_.id AS id_0, c0_.first_name AS first_name_1, c0_.last_name AS last_name_2, c0_.email AS email_3, c0_.tel AS tel_4, c0_.created_at AS created_at_5, c0_.updated_at AS updated_at_6, c0_.type_client AS type_client_7, c0_.address AS address_8, c0_.sexe AS sexe_9, c0_.date_naissance AS date_naissance_10, c0_.poids AS poids_11, c0_.taux_graisse AS taux_graisse_12, c0_.experience_fitness AS experience_fitness_13, c0_.experience_fitness_quoi AS experience_fitness_quoi_14, c0_.combiens_annees AS combiens_annees_15, c0_.fumez_vous AS fumez_vous_16, c0_.buvez_alcool AS buvez_alcool_17, c0_.maladie_existant AS maladie_existant_18, c0_.traitement AS traitement_19, c0_.medicament AS medicament_20, c0_.medicament_quoi AS medicament_quoi_21, c0_.operation AS operation_22, c0_.operation_quoi AS operation_quoi_23, c0_.objectif AS objectif_24, c0_.remarque AS remarque_25, c0_.type_abo AS type_abo_26, c0_.date_ref AS date_ref_27, c0_.can_edit AS can_edit_28, c0_.edit_files AS edit_files_29, c0_.edit_fitness AS edit_fitness_30, c0_.edit_diete AS edit_diete_31, c0_.edit_invoices AS edit_invoices_32, c0_.user_id AS user_id_33 FROM client c0_ WHERE c0_.id IN (?) ORDER BY c0_.first_name ASC, c0_.last_name ASC
Parameters:
[
  "259"
]
46 0.28 ms
SELECT t0.id AS id_1, t0.code AS code_2, t0.name AS name_3, t0.sell_ht AS sell_ht_4, t0.buy_ht AS buy_ht_5, t0.stock AS stock_6, t0.created_at AS created_at_7, t0.updated_at AS updated_at_8, t0.photo AS photo_9, t0.taille_poids AS taille_poids_10, t0.marque AS marque_11, t0.date_expiration AS date_expiration_12, t0.marge AS marge_13, t0.barecode AS barecode_14 FROM product t0 ORDER BY t0.name ASC
Parameters:
[]
47 0.47 ms
SELECT l0_.id AS id_0, l0_.stock AS stock_1, l0_.date_expiration AS date_expiration_2, l0_.product_id AS product_id_3 FROM lot l0_ WHERE l0_.product_id = ? AND l0_.id IN (?)
Parameters:
[
  "1641"
  "1889"
]
48 0.42 ms
SELECT l0_.id AS id_0, l0_.stock AS stock_1, l0_.date_expiration AS date_expiration_2, l0_.product_id AS product_id_3 FROM lot l0_ WHERE l0_.product_id = ? AND l0_.id IN (?)
Parameters:
[
  "1650"
  "1898"
]
49 0.24 ms
"START TRANSACTION"
Parameters:
[]
50 3.52 ms
INSERT INTO piece (date, numero, type, amount_ht, amount_tva, discount, amount_discount, amount_ttc, created_at, updated_at, payer, amount_buy_ht, amount_marge, solde, mode_paiement, amount_discount_total, client_id, user_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Parameters:
[
  "2025-07-19"
  3071
  null
  "8.00"
  "0.00"
  null
  "0.00"
  "8.00"
  "2025-07-19 21:12:02"
  "2025-07-19 21:12:02"
  null
  "2.00"
  "6.00"
  "8.00"
  null
  "0.00"
  259
  2
]
51 0.40 ms
INSERT INTO piece_line (code, name, price_ht, qty, tva, total_ht, marge, price_buy_ht, rabais, amount_rabais, piece_id, product_id, lot_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Parameters:
[
  null
  null
  "5.00"
  1.0
  null
  "5.00"
  "4.00"
  "1.00"
  null
  "0.00"
  4388
  1641
  1889
]
52 0.28 ms
INSERT INTO piece_line (code, name, price_ht, qty, tva, total_ht, marge, price_buy_ht, rabais, amount_rabais, piece_id, product_id, lot_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Parameters:
[
  null
  null
  "3.00"
  1.0
  null
  "3.00"
  "2.00"
  "1.00"
  null
  "0.00"
  4388
  1650
  1898
]
53 0.92 ms
"COMMIT"
Parameters:
[]
54 0.17 ms
"START TRANSACTION"
Parameters:
[]
55 3.45 ms
UPDATE lot SET stock = ? WHERE id = ?
Parameters:
[
  621.0
  1889
]
56 0.40 ms
"COMMIT"
Parameters:
[]
57 0.24 ms
"START TRANSACTION"
Parameters:
[]
58 0.32 ms
UPDATE lot SET stock = ? WHERE id = ?
Parameters:
[
  3199609.0
  1898
]
59 0.38 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.

Entities Mapping

Class Mapping errors
App\Entity\User No errors.
App\Entity\Client
  • The mappings App\Entity\Client#docs and App\Entity\Doc#client are inconsistent with each other.
App\Entity\Piece No errors.
App\Entity\Payment No errors.
App\Entity\Gift No errors.
App\Entity\Configuration No errors.
App\Entity\Product No errors.
App\Entity\PieceLine No errors.
App\Entity\Lot No errors.
App\Entity\Programm No errors.
App\Entity\Photo No errors.
App\Entity\Doc No errors.
App\Entity\Programme No errors.
App\Entity\Affectation No errors.