GET https://viccistore.com/back/admin/order?page=1

Query Metrics

6 Database Queries
6 Different statements
1.61 ms Query time
3 Invalid entities

Grouped Statements

Show all queries

Time Count Info
0.59 ms
(36.50%)
1
SELECT count(DISTINCT o0_.id) AS sclr_0 FROM `order` o0_ LEFT JOIN order_item o1_ ON o0_.id = o1_.order_id LEFT JOIN product p2_ ON o1_.product_id = p2_.id LEFT JOIN image i3_ ON p2_.id = i3_.product_id AND (i3_.is_main = 1)
Parameters:
[]
0.33 ms
(20.49%)
1
SELECT o0_.id AS id_0, o0_.reference AS reference_1, o0_.status AS status_2, o0_.total_price AS total_price_3, o0_.created_at AS created_at_4, o0_.updated_at AS updated_at_5, o0_.total_ht AS total_ht_6, o0_.total_tax AS total_tax_7, o1_.id AS id_8, o1_.quantity AS quantity_9, o1_.price AS price_10, p2_.id AS id_11, p2_.name AS name_12, p2_.price AS price_13, p2_.image AS image_14, p2_.qty AS qty_15, p2_.sku AS sku_16, p2_.description AS description_17, p2_.created_at AS created_at_18, p2_.updated_at AS updated_at_19, p2_.rating AS rating_20, p2_.weight AS weight_21, p2_.status AS status_22, p2_.promotion AS promotion_23, p2_.promotion_price AS promotion_price_24, p2_.promotion_start_date AS promotion_start_date_25, p2_.promotion_end_date AS promotion_end_date_26, p2_.to_be_exposed AS to_be_exposed_27, p2_.has_variants AS has_variants_28, i3_.id AS id_29, i3_.filename AS filename_30, i3_.is_main AS is_main_31, o0_.user_id AS user_id_32, o0_.shipping_address_id AS shipping_address_id_33, o0_.billing_address_id AS billing_address_id_34, o0_.delivery_option_id AS delivery_option_id_35, o0_.payment_option_id AS payment_option_id_36, o1_.order_id AS order_id_37, o1_.product_id AS product_id_38, p2_.category_id AS category_id_39, p2_.user_id AS user_id_40, p2_.taxt_id AS taxt_id_41, i3_.product_id AS product_id_42 FROM `order` o0_ LEFT JOIN order_item o1_ ON o0_.id = o1_.order_id LEFT JOIN product p2_ ON o1_.product_id = p2_.id LEFT JOIN image i3_ ON p2_.id = i3_.product_id AND (i3_.is_main = 1) WHERE o0_.id IN (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ORDER BY o0_.created_at DESC
Parameters:
[
  22
  21
  20
  19
  18
  17
  16
  15
  14
  13
]
0.22 ms
(13.65%)
1
SELECT t0.id AS id_1, t0.name AS name_2, t0.image AS image_3, t0.created_at AS created_at_4, t0.updated_at AS updated_at_5, t0.user_id AS user_id_6, t0.parent_id AS parent_id_7, t0.category_id AS category_id_8 FROM category t0
Parameters:
[]
0.20 ms
(12.24%)
1
SELECT DISTINCT o0_.id AS id_0, o0_.created_at AS created_at_1 FROM `order` o0_ LEFT JOIN order_item o1_ ON o0_.id = o1_.order_id LEFT JOIN product p2_ ON o1_.product_id = p2_.id LEFT JOIN image i3_ ON p2_.id = i3_.product_id AND (i3_.is_main = 1) ORDER BY o0_.created_at DESC LIMIT 10
Parameters:
[]
0.15 ms
(9.06%)
1
SELECT t0.id AS id_1, t0.title AS title_2, t0.content AS content_3, t0.created_at AS created_at_4, t0.updated_at AS updated_at_5, t0.is_active AS is_active_6, t0.slug AS slug_7 FROM policy t0
Parameters:
[]
0.13 ms
(8.07%)
1
SELECT t0.id AS id_1, t0.name AS name_2, t0.description AS description_3, t0.is_active AS is_active_4, t0.reference_id AS reference_id_5 FROM payment_option t0 WHERE t0.id = ?
Parameters:
[
  4
]

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\Order
  • The mappings App\Entity\Order#billingAddress and App\Entity\Address#orders are inconsistent with each other.
  • The association App\Entity\Order#DeliveryOption refers to the inverse side field App\Entity\DeliveryOption#PaymentOption which does not exist.
App\Entity\OrderItem No errors.
App\Entity\Product
  • The field App\Entity\Product#orderItems is on the inverse side of a bi-directional relationship, but the specified mappedBy association on the target-entity App\Entity\OrderItem#product does not contain the required 'inversedBy="orderItems"' attribute.
App\Entity\Image No errors.
App\Entity\User No errors.
App\Entity\Address No errors.
App\Entity\DeliveryOption
  • The mappings App\Entity\DeliveryOption#Orders and App\Entity\Order#DeliveryOption are inconsistent with each other.
App\Entity\PaymentOption No errors.
App\Entity\Category No errors.
App\Entity\Tax No errors.
App\Entity\Reference No errors.
App\Entity\Review No errors.
App\Entity\ProductOption No errors.
App\Entity\ProductVariant No errors.
App\Entity\Policy No errors.
App\Entity\PaymentOptionItem No errors.