https://mazego.fr/caisse/

Query Metrics

25 Database Queries
19 Different statements
22.43 ms Query time
5 Invalid entities

Queries

Group similar statements

#▲ Time Info
1 1.21 ms
SELECT t0.id AS id_1, t0.email AS email_2, t0.roles AS roles_3, t0.password AS password_4, t0.firstname AS firstname_5, t0.lastname AS lastname_6, t0.categorie AS categorie_7, t0.trial_start_date AS trial_start_date_8, t0.trial_end_date AS trial_end_date_9, t0.user_license AS user_license_10, t0.quota_used AS quota_used_11, t0.quota_month AS quota_month_12, t0.digigo_email AS digigo_email_13, t14.id AS id_15, t14.status AS status_16, t14.activated_at AS activated_at_17, t14.amount_paid AS amount_paid_18, t14.payment_transaction_id AS payment_transaction_id_19, t14.payment_method AS payment_method_20, t14.payment_date AS payment_date_21, t14.expires_at AS expires_at_22, t14.created_at AS created_at_23, t14.updated_at AS updated_at_24, t14.user_id AS user_id_25, t26.id AS id_27, t26.signatures_included AS signatures_included_28, t26.signatures_remaining AS signatures_remaining_29, t26.signatures_used AS signatures_used_30, t26.signature_cost_per_unit AS signature_cost_per_unit_31, t26.last_reset_at AS last_reset_at_32, t26.next_reset_at AS next_reset_at_33, t26.created_at AS created_at_34, t26.updated_at AS updated_at_35, t26.user_id AS user_id_36 FROM user t0 LEFT JOIN facture_electronique_activation t14 ON t14.user_id = t0.id LEFT JOIN signature_counter t26 ON t26.user_id = t0.id WHERE t0.id = ?
Parameters:
[
  12
]
2 1.33 ms
SELECT t0.id AS id_1, t0.nomentreprise AS nomentreprise_2, t0.valorisationentreprise AS valorisationentreprise_3, t0.adresseentreprise AS adresseentreprise_4, t0.codepostal AS codepostal_5, t0.ville AS ville_6, t0.telephone AS telephone_7, t0.mail AS mail_8, t0.siret AS siret_9, t0.devise AS devise_10, t0.droit_de_timbre AS droit_de_timbre_11, t0.transport AS transport_12, t0.logo AS logo_13, t0.use_tva_per_line AS use_tva_per_line_14, t0.use_discount_per_line AS use_discount_per_line_15, t0.default_tva_rate AS default_tva_rate_16, t0.default_discount_rate AS default_discount_rate_17, t0.caisse_commandes_en_attente AS caisse_commandes_en_attente_18, t0.caisse_mode_restaurant AS caisse_mode_restaurant_19, t0.caisse_gestion_tables AS caisse_gestion_tables_20, t0.caisse_ticket_cuisine AS caisse_ticket_cuisine_21, t0.caisse_demander_couverts AS caisse_demander_couverts_22, t0.user_id AS user_id_23 FROM entreprise t0 WHERE t0.user_id = ? LIMIT 1
Parameters:
[
  12
]
3 0.64 ms
SELECT t0.id AS id_1, t0.statut AS statut_2, t0.type_commande AS type_commande_3, t0.nb_couverts AS nb_couverts_4, t0.libelle AS libelle_5, t0.note AS note_6, t0.created_at AS created_at_7, t0.updated_at AS updated_at_8, t0.closed_at AS closed_at_9, t0.user_id AS user_id_10, t0.entreprise_id AS entreprise_id_11, t0.table_id AS table_id_12, t0.client_id AS client_id_13, t0.cree_par_user_id AS cree_par_user_id_14, t0.cree_par_salarie_id AS cree_par_salarie_id_15, t0.devis_id AS devis_id_16 FROM commande_caisse t0 WHERE t0.id = ?
Parameters:
[
  12
]
4 0.70 ms
SELECT t0.id AS id_1, t0.libelle AS libelle_2, t0.quantite AS quantite_3, t0.prix_unitaire_ht AS prix_unitaire_ht_4, t0.taux_tva AS taux_tva_5, t0.remise_manuelle AS remise_manuelle_6, t0.remise_produit AS remise_produit_7, t0.note AS note_8, t0.quantite_envoyee_cuisine AS quantite_envoyee_cuisine_9, t0.created_at AS created_at_10, t0.commande_id AS commande_id_11, t0.produit_id AS produit_id_12 FROM ligne_commande_caisse t0 WHERE t0.commande_id = ? ORDER BY t0.id ASC
Parameters:
[
  12
]
5 0.72 ms
SELECT t0.id AS id_1, t0.reference AS reference_2, t0.description AS description_3, t0.puht AS puht_4, t0.remise AS remise_5, t0.npuht AS npuht_6, t0.nb AS nb_7, t0.prixht AS prixht_8, t0.tva AS tva_9, t0.code_barre AS code_barre_10, t0.nature_stock AS nature_stock_11, t0.num_bl AS num_bl_12, t0.piece AS piece_13, t0.marque AS marque_14, t0.modele AS modele_15, t0.immatriculation AS immatriculation_16, t0.date_commande AS date_commande_17, t0.nom_fournisseur AS nom_fournisseur_18, t0.image_url AS image_url_19, t0.top_vente AS top_vente_20, t0.prix_vente AS prix_vente_21, t0.type AS type_22, t0.tva_rate AS tva_rate_23, t0.discount_rate AS discount_rate_24, t0.unite AS unite_25, t0.commission_rate AS commission_rate_26, t0.user_id AS user_id_27, t0.fournisseur_id AS fournisseur_id_28, t0.categorie_id AS categorie_id_29 FROM produit t0 WHERE t0.id = ?
Parameters:
[
  24
]
6 0.69 ms
SELECT c0_.id AS id_0, c0_.nom AS nom_1, c0_.icone AS icone_2, c0_.top_vente AS top_vente_3, c0_.user_id AS user_id_4 FROM categories c0_ INNER JOIN produit p1_ ON c0_.id = p1_.categorie_id WHERE c0_.user_id = ? GROUP BY c0_.id ORDER BY c0_.nom ASC
Parameters:
[
  12
]
7 1.19 ms
SELECT p0_.id AS id_0, p0_.reference AS reference_1, p0_.description AS description_2, p0_.puht AS puht_3, p0_.remise AS remise_4, p0_.npuht AS npuht_5, p0_.nb AS nb_6, p0_.prixht AS prixht_7, p0_.tva AS tva_8, p0_.code_barre AS code_barre_9, p0_.nature_stock AS nature_stock_10, p0_.num_bl AS num_bl_11, p0_.piece AS piece_12, p0_.marque AS marque_13, p0_.modele AS modele_14, p0_.immatriculation AS immatriculation_15, p0_.date_commande AS date_commande_16, p0_.nom_fournisseur AS nom_fournisseur_17, p0_.image_url AS image_url_18, p0_.top_vente AS top_vente_19, p0_.prix_vente AS prix_vente_20, p0_.type AS type_21, p0_.tva_rate AS tva_rate_22, p0_.discount_rate AS discount_rate_23, p0_.unite AS unite_24, p0_.commission_rate AS commission_rate_25, p0_.user_id AS user_id_26, p0_.fournisseur_id AS fournisseur_id_27, p0_.categorie_id AS categorie_id_28 FROM produit p0_ WHERE p0_.user_id = ? ORDER BY p0_.description ASC
Parameters:
[
  12
]
8 0.95 ms
SELECT t0.id AS id_1, t0.reference AS reference_2, t0.description AS description_3, t0.puht AS puht_4, t0.remise AS remise_5, t0.npuht AS npuht_6, t0.nb AS nb_7, t0.prixht AS prixht_8, t0.tva AS tva_9, t0.code_barre AS code_barre_10, t0.nature_stock AS nature_stock_11, t0.num_bl AS num_bl_12, t0.piece AS piece_13, t0.marque AS marque_14, t0.modele AS modele_15, t0.immatriculation AS immatriculation_16, t0.date_commande AS date_commande_17, t0.nom_fournisseur AS nom_fournisseur_18, t0.image_url AS image_url_19, t0.top_vente AS top_vente_20, t0.prix_vente AS prix_vente_21, t0.type AS type_22, t0.tva_rate AS tva_rate_23, t0.discount_rate AS discount_rate_24, t0.unite AS unite_25, t0.commission_rate AS commission_rate_26, t0.user_id AS user_id_27, t0.fournisseur_id AS fournisseur_id_28, t0.categorie_id AS categorie_id_29 FROM produit t0 WHERE t0.top_vente = ? AND t0.user_id = ? LIMIT 5
Parameters:
[
  1
  12
]
9 0.85 ms
SELECT c0_.id AS id_0, c0_.raisonsociale AS raisonsociale_1, c0_.siret AS siret_2, c0_.siteweb AS siteweb_3, c0_.telephone AS telephone_4, c0_.tva AS tva_5, c0_.civilite AS civilite_6, c0_.nom AS nom_7, c0_.prenom AS prenom_8, c0_.telephonecontact AS telephonecontact_9, c0_.mail AS mail_10, c0_.adresse AS adresse_11, c0_.complementadresse AS complementadresse_12, c0_.ville AS ville_13, c0_.cp AS cp_14, c0_.pays AS pays_15, c0_.creeespaceclient AS creeespaceclient_16, c0_.user_id AS user_id_17 FROM client c0_ WHERE c0_.user_id = ? ORDER BY c0_.nom ASC
Parameters:
[
  12
]
10 0.78 ms
SELECT c0_.id AS id_0, c0_.date_ouverture AS date_ouverture_1, c0_.date_cloture AS date_cloture_2, c0_.fond_ouverture AS fond_ouverture_3, c0_.montant_theorique AS montant_theorique_4, c0_.montant_compte AS montant_compte_5, c0_.ecart AS ecart_6, c0_.statut AS statut_7, c0_.commentaire AS commentaire_8, c0_.entreprise_id AS entreprise_id_9, c0_.ouvert_par_user_id AS ouvert_par_user_id_10, c0_.ouvert_par_salarie_id AS ouvert_par_salarie_id_11, c0_.cloture_par_user_id AS cloture_par_user_id_12, c0_.cloture_par_salarie_id AS cloture_par_salarie_id_13 FROM cloture_caisse c0_ WHERE c0_.entreprise_id = ? AND c0_.statut = ? ORDER BY c0_.date_ouverture DESC LIMIT 1
Parameters:
[
  2
  "ouverte"
]
11 0.77 ms
SELECT COUNT(c0_.id) AS sclr_0 FROM commande_caisse c0_ WHERE c0_.user_id = ? AND c0_.statut = ? AND c0_.table_id IS NULL
Parameters:
[
  12
  "en_attente"
]
12 0.68 ms
SELECT c0_.id AS id_0, c0_.nom AS nom_1, c0_.icone AS icone_2, c0_.top_vente AS top_vente_3, c0_.user_id AS user_id_4 FROM categories c0_
Parameters:
[]
13 0.52 ms
SELECT DATABASE()
Parameters:
[]
14 1.22 ms
SELECT TABLE_NAME
FROM information_schema.TABLES
WHERE TABLE_SCHEMA = ?
  AND TABLE_TYPE = 'BASE TABLE'
ORDER BY TABLE_NAME
Parameters:
[
  "mazeg1980544"
]
15 0.41 ms
SELECT DATABASE()
Parameters:
[]
16 0.99 ms
SELECT TABLE_NAME
FROM information_schema.TABLES
WHERE TABLE_SCHEMA = ?
  AND TABLE_TYPE = 'BASE TABLE'
ORDER BY TABLE_NAME
Parameters:
[
  "mazeg1980544"
]
17 0.44 ms
SELECT DATABASE()
Parameters:
[]
18 2.14 ms
SELECT t.TABLE_NAME,
           t.ENGINE,
           t.AUTO_INCREMENT,
           t.TABLE_COMMENT,
           t.CREATE_OPTIONS,
           t.TABLE_COLLATION,
           ccsa.CHARACTER_SET_NAME
      FROM information_schema.TABLES t
        INNER JOIN information_schema.COLLATION_CHARACTER_SET_APPLICABILITY ccsa
          ON ccsa.FULL_COLLATION_NAME = t.TABLE_COLLATION WHERE t.TABLE_SCHEMA = ? AND t.TABLE_NAME = ? AND t.TABLE_TYPE = 'BASE TABLE'
Parameters:
[
  "mazeg1980544"
  "doctrine_migration_versions"
]
19 0.38 ms
SELECT DATABASE()
Parameters:
[]
20 1.63 ms
SELECT DISTINCT            k.CONSTRAINT_NAME,
            k.COLUMN_NAME,
            k.REFERENCED_TABLE_NAME,
            k.REFERENCED_COLUMN_NAME,
            k.ORDINAL_POSITION /*!50116,
            c.UPDATE_RULE,
            c.DELETE_RULE */
FROM information_schema.key_column_usage k /*!50116
INNER JOIN information_schema.referential_constraints c
ON c.CONSTRAINT_NAME = k.CONSTRAINT_NAME
AND c.TABLE_NAME = k.TABLE_NAME */ WHERE k.TABLE_SCHEMA = ? AND k.TABLE_NAME = ? AND k.REFERENCED_COLUMN_NAME IS NOT NULL /*!50116 AND c.CONSTRAINT_SCHEMA = 'mazeg1980544' */ ORDER BY k.ORDINAL_POSITION
Parameters:
[
  "mazeg1980544"
  "doctrine_migration_versions"
]
21 2.43 ms
SELECT       c.COLUMN_NAME        AS field,
           IF(
        c.COLUMN_TYPE = 'longtext'
        AND EXISTS(
            SELECT * from information_schema.CHECK_CONSTRAINTS i_c
            WHERE i_c.CONSTRAINT_SCHEMA = 'mazeg1980544'
            AND i_c.TABLE_NAME = c.TABLE_NAME
            AND i_c.CHECK_CLAUSE = CONCAT(
                'json_valid(`',
                    c.COLUMN_NAME,
                '`)'
            )
        ),
        'json',
        c.COLUMN_TYPE
    )       AS type,
       c.IS_NULLABLE        AS `null`,
       c.COLUMN_KEY         AS `key`,
       c.COLUMN_DEFAULT     AS `default`,
       c.EXTRA,
       c.COLUMN_COMMENT     AS comment,
       c.CHARACTER_SET_NAME AS characterset,
       c.COLLATION_NAME     AS collation
FROM information_schema.COLUMNS c
    INNER JOIN information_schema.TABLES t
        ON t.TABLE_NAME = c.TABLE_NAME
     WHERE c.TABLE_SCHEMA = ? AND t.TABLE_SCHEMA = ? AND t.TABLE_TYPE = 'BASE TABLE' AND t.TABLE_NAME = ? ORDER BY ORDINAL_POSITION
Parameters:
[
  "mazeg1980544"
  "mazeg1980544"
  "doctrine_migration_versions"
]
22 0.34 ms
SELECT DATABASE()
Parameters:
[]
23 0.51 ms
SELECT        NON_UNIQUE  AS Non_Unique,
        INDEX_NAME  AS Key_name,
        COLUMN_NAME AS Column_Name,
        SUB_PART    AS Sub_Part,
        INDEX_TYPE  AS Index_Type
FROM information_schema.STATISTICS WHERE TABLE_SCHEMA = ? AND TABLE_NAME = ? ORDER BY SEQ_IN_INDEX
Parameters:
[
  "mazeg1980544"
  "doctrine_migration_versions"
]
24 0.54 ms
SELECT * FROM doctrine_migration_versions
Parameters:
[]
25 0.38 ms
SELECT DATABASE()
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
  • The field App\Entity\User#paiementsFournisseur is on the inverse side of a bi-directional relationship, but the specified mappedBy association on the target-entity App\Entity\PaiementFournisseur#user does not contain the required 'inversedBy="paiementsFournisseur"' attribute.
  • The field App\Entity\User#assignedTickets is on the inverse side of a bi-directional relationship, but the specified mappedBy association on the target-entity App\Entity\Ticket#assignedTo does not contain the required 'inversedBy="assignedTickets"' attribute.
  • The field App\Entity\User#ticketReplies is on the inverse side of a bi-directional relationship, but the specified mappedBy association on the target-entity App\Entity\TicketReply#user does not contain the required 'inversedBy="ticketReplies"' attribute.
App\Entity\FactureElectroniqueActivation No errors.
App\Entity\SignatureCounter No errors.
App\Entity\Entreprise No errors.
App\Entity\Commentaire No errors.
App\Entity\Devis
  • The field App\Entity\Devis#retoursFournisseur is on the inverse side of a bi-directional relationship, but the specified mappedBy association on the target-entity App\Entity\RetourFournisseur#bonCommande does not contain the required 'inversedBy="retoursFournisseur"' attribute.
App\Entity\Produit No errors.
App\Entity\UserPage No errors.
App\Entity\Entrees
  • The field App\Entity\Entrees#retoursFournisseur is on the inverse side of a bi-directional relationship, but the specified mappedBy association on the target-entity App\Entity\RetourFournisseur#reception does not contain the required 'inversedBy="retoursFournisseur"' attribute.
  • The field App\Entity\Entrees#lignesFactureFournisseur is on the inverse side of a bi-directional relationship, but the specified mappedBy association on the target-entity App\Entity\LigneFactureFournisseur#receptionLier does not contain the required 'inversedBy="lignesFactureFournisseur"' attribute.
App\Entity\Fournisseur No errors.
App\Entity\Prospect No errors.
App\Entity\RetourFournisseur No errors.
App\Entity\FactureFournisseur No errors.
App\Entity\RetourClient No errors.
App\Entity\PaiementFournisseur No errors.
App\Entity\Ticket No errors.
App\Entity\TicketReply No errors.
App\Entity\Certificate No errors.
App\Entity\TTNConfiguration No errors.
App\Entity\FactureElectroniqueFacture No errors.
App\Entity\CommandeCaisse No errors.
App\Entity\Categorie No errors.
App\Entity\Client
  • The association App\Entity\Client#user refers to the inverse side field App\Entity\User#clients which does not exist.
App\Entity\ClotureCaisse No errors.
App\Entity\Salarie No errors.
App\Entity\TableRestaurant No errors.
App\Entity\LigneCommandeCaisse No errors.
App\Entity\Sorties No errors.
App\Entity\Stock No errors.
App\Entity\DevisLine No errors.
App\Entity\LigneFactureFournisseur No errors.
App\Entity\LigneRetourFournisseur No errors.
App\Entity\Facture
  • The field App\Entity\Facture#retoursClient is on the inverse side of a bi-directional relationship, but the specified mappedBy association on the target-entity App\Entity\RetourClient#factureSource does not contain the required 'inversedBy="retoursClient"' attribute.
App\Entity\LigneRetourClient No errors.
App\Entity\SalleRestaurant No errors.
App\Entity\DetailsFacture No errors.