https://bio-moosod.com/services/submitSaleReport

Query Metrics

108 Database Queries
8 Different statements
30.53 ms Query time
1 Invalid entities

Grouped Statements

Show all queries

Time Count Info
7.21 ms
(0.00%)
27
"COMMIT"
Parameters:
[]
7.05 ms
(0.00%)
13
SELECT t0.id AS id_1, t0.ref_id AS ref_id_2, t0.product_name AS product_name_3, t0.model AS model_4, t0.barcode_no AS barcode_no_5, t0.comment AS comment_6, t0.qty AS qty_7, t0.update_by AS update_by_8, t0.update_date AS update_date_9, t0.flag_status AS flag_status_10, t0.flag_visibility AS flag_visibility_11, t0.cost AS cost_12, t0.sale_price AS sale_price_13, t0.unit AS unit_14, t0.is_join AS is_join_15, t0.join_with_product AS join_with_product_16, t0.sort_index AS sort_index_17, t0.is_favorite AS is_favorite_18, t0.category_id AS category_id_19, t0.sale_type_id AS sale_type_id_20 FROM product t0 WHERE t0.ref_id = ? LIMIT 1
Parameters:
[
  "6178c3fc49413"
]
6.34 ms
(0.00%)
13
SELECT p0_.id AS id_0, p0_.ref_id AS ref_id_1, p0_.qty AS qty_2, p0_.cost AS cost_3, p0_.price AS price_4, p0_.update_date AS update_date_5, p0_.update_by AS update_by_6, p0_.flag_status AS flag_status_7, p0_.flag_visibility AS flag_visibility_8, p0_.branch_id AS branch_id_9, p0_.product_id AS product_id_10 FROM product_branch p0_ WHERE p0_.branch_id = ? AND p0_.product_id = ?
Parameters:
[
  16
  4
]
2.93 ms
(0.00%)
13
INSERT INTO sale_report_detail (cost, price, vat, qty, flag_status, sale_report_id, product_id) VALUES (?, ?, ?, ?, ?, ?, ?)
Parameters:
[
  1 => 106.0
  2 => 128.0
  3 => null
  4 => 0.74
  5 => 1
  6 => 9726
  7 => 4
]
2.61 ms
(0.00%)
13
UPDATE product_branch SET qty = ? WHERE id = ?
Parameters:
[
  -4072.03
  1591
]
1.92 ms
(0.00%)
27
"START TRANSACTION"
Parameters:
[]
1.86 ms
(0.00%)
1
SELECT t0.id AS id_1, t0.ref_id AS ref_id_2, t0.branch_ref_key AS branch_ref_key_3, t0.branch_id AS branch_id_4, t0.branch_code AS branch_code_5, t0.branch_name AS branch_name_6, t0.address AS address_7, t0.postel AS postel_8, t0.update_by AS update_by_9, t0.update_date AS update_date_10, t0.flag_status AS flag_status_11, t0.flag_show_product_cost AS flag_show_product_cost_12, t0.flag_show_product_balance AS flag_show_product_balance_13, t0.province_key AS province_key_14 FROM branch t0 WHERE t0.ref_id = ? LIMIT 1
Parameters:
[
  "62dfab5bc9e6c"
]
0.61 ms
(0.00%)
1
INSERT INTO sale_report (report_date, total_cost, total_sale, ref_id, flag_status, branch_id) VALUES (?, ?, ?, ?, ?, ?)
Parameters:
[
  1 => "2024-11-16 08:31:43"
  2 => 6741.0
  3 => 7715.0
  4 => "6738a10566f88"
  5 => 1
  6 => 16
]

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\Branch No errors.
App\Entity\Province No errors.
App\Entity\SaleReport No errors.
App\Entity\SaleReportDetail No errors.
App\Entity\Product
  • The association App\Entity\Product#sale_type refers to the inverse side field App\Entity\SaleType#no which does not exist.
  • The field App\Entity\Product#product_branch is on the inverse side of a bi-directional relationship, but the specified mappedBy association on the target-entity App\Entity\ProductBranch#product does not contain the required 'inversedBy="product_branch"' attribute.
App\Entity\Category No errors.
App\Entity\SaleType No errors.
App\Entity\ProductBranch No errors.