POST https://azima24.com/api/addpurchase

Query Metrics

11 Database Queries
11 Different statements
13.84 ms Query time
1 Invalid entities
8 Managed entities

Queries

Group similar statements

# Time Info
1 1.79 ms
SELECT t0.id AS id_1, t0.username AS username_2, t0.roles AS roles_3, t0.password AS password_4, t0.email AS email_5, t0.contact AS contact_6, t0.city AS city_7 FROM user t0 WHERE t0.id = ?
Parameters:
[
  22
]
2 1.62 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.contact AS contact_3, t0.address AS address_4, t0.can_sell_cash AS can_sell_cash_5, t0.is_cashvan AS is_cashvan_6, t0.user_id AS user_id_7 FROM sales_men t0 WHERE t0.id = ?
Parameters:
[
  27
]
3 1.35 ms
SELECT t0.id AS id_1, t0.section AS section_2, t0.location AS location_3, t0.shop_name AS shop_name_4, t0.phone AS phone_5, t0.credit_limit AS credit_limit_6, t0.credit_days AS credit_days_7, t0.name_manager_shop AS name_manager_shop_8, t0.longitude AS longitude_9, t0.latitude AS latitude_10, t0.sales_men_id AS sales_men_id_11, t0.city_id AS city_id_12 FROM shop t0 WHERE t0.id = ?
Parameters:
[
  3156
]
4 4.50 ms
SELECT COUNT(id) AS invoiceCount
        FROM invoice
        WHERE label LIKE :yearMonth
          AND sales_id = :salesId
Parameters:
[
  "yearMonth" => "2026/MAY/%"
  "salesId" => 27
]
5 1.40 ms
SELECT t0.id AS id_1, t0.brand AS brand_2, t0.pricectns AS pricectns_3, t0.pricebox AS pricebox_4, t0.pricebottle AS pricebottle_5, t0.priceitem AS priceitem_6, t0.pricesac AS pricesac_7 FROM goods t0 WHERE t0.brand = ? LIMIT 1
Parameters:
[
  " Lame Dorco ( STL-300) Titan Carte (Crt*50Pkt)"
]
6 0.45 ms
SELECT t0.id AS id_1, t0.item_number AS item_number_2, t0.carton_number AS carton_number_3, t0.totalitemvalue AS totalitemvalue_4, t0.totalctnsvalue AS totalctnsvalue_5, t0.totalvalue AS totalvalue_6, t0.box_number AS box_number_7, t0.bottle_number AS bottle_number_8, t0.totalboxvalue AS totalboxvalue_9, t0.sac_number AS sac_number_10, t0.totalsacvalue AS totalsacvalue_11, t0.totalbottlevalue AS totalbottlevalue_12, t0.pricectn AS pricectn_13, t0.pricesac AS pricesac_14, t0.pricebtl AS pricebtl_15, t0.pricebox AS pricebox_16, t0.priceitem AS priceitem_17, t0.id_brand_id AS id_brand_id_18, t0.invoice_id AS invoice_id_19, t0.id_brand_cashvan_id AS id_brand_cashvan_id_20 FROM purchase t0 WHERE t0.id_brand_id = ? AND t0.invoice_id = ? LIMIT 1
Parameters:
[
  50
  null
]
7 0.20 ms
"START TRANSACTION"
Parameters:
[]
8 1.60 ms
INSERT INTO invoice (date, label, amount, latitude, longitude, cash_amount, credit_amount, etat, sales_id, shop_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Parameters:
[
  "2026-05-14 13:21:23"
  "2026/MAY/CASHVAN-3Julia/174"
  53000.0
  -19.0749685
  47.5486187
  53000.0
  0.0
  0
  27
  3156
]
9 0.23 ms
INSERT INTO payment (cash, date, shop_id) VALUES (?, ?, ?)
Parameters:
[
  "53000"
  "2026-05-14"
  3156
]
10 0.40 ms
INSERT INTO purchase (item_number, carton_number, totalitemvalue, totalctnsvalue, totalvalue, box_number, bottle_number, totalboxvalue, sac_number, totalsacvalue, totalbottlevalue, pricectn, pricesac, pricebtl, pricebox, priceitem, id_brand_id, invoice_id, id_brand_cashvan_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Parameters:
[
  "0"
  "0"
  0.0
  0.0
  53000.0
  "5"
  "0"
  "53000"
  "0"
  0.0
  0.0
  524500.0
  0.0
  0.0
  10600.0
  0.0
  50
  20989
  null
]
11 0.29 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\User 1
App\Entity\SalesMen 1
App\Entity\Shop 1
App\Entity\City 1
App\Entity\Goods 1
App\Entity\Invoice 1
App\Entity\Payment 1
App\Entity\Purchase 1

Entities Mapping

Class Mapping errors
App\Entity\User No errors.
App\Entity\SalesMen No errors.
App\Entity\Shop No errors.
App\Entity\Invoice No errors.
App\Entity\ShopSalesman No errors.
App\Entity\ProductMove No errors.
App\Entity\City No errors.
App\Entity\Payment No errors.
App\Entity\Purchase No errors.
App\Entity\Goods No errors.
App\Entity\Inventory No errors.
App\Entity\MvtStock No errors.
App\Entity\Promotion No errors.
App\Entity\GoodsCashvan No errors.
App\Entity\PromotionInvoice
  • The association App\Entity\PromotionInvoice#brand refers to the inverse side field App\Entity\Goods#promotionInvoices which does not exist.