https://courier.ohau.co.ke/api/parcels/receipt/g03/951043/CASH

Query Metrics

14 Database Queries
12 Different statements
17.34 ms Query time
1 Invalid entities

Grouped Statements

Show all queries

Time Count Info
2.85 ms
(16.42%)
1
"COMMIT"
Parameters:
[]
2.23 ms
(12.89%)
2
SELECT t0.id AS id_1, t0.description AS description_2, t0.number AS number_3, t0.is_in_delivery AS is_in_delivery_4, t0.created_at AS created_at_5, t0.way_bill_id AS way_bill_id_6 FROM parcel t0 WHERE t0.way_bill_id = ?
Parameters:
[
  951043
]
1.88 ms
(10.86%)
1
UPDATE transaction SET cash_amount = ?, is_complete = ?, is_paid = ?, payment_method = ?, cu_invoice_number = ?, cu_serial_number = ?, is_final = ? WHERE id = ?
Parameters:
[
  200.0
  1
  1
  "CASH"
  "0110611470000115768"
  "KRAMW011202207061147"
  1
  951002
]
1.85 ms
(10.66%)
1
SELECT t0.id AS id_1, t0.sender_name AS sender_name_2, t0.sender_phone_number AS sender_phone_number_3, t0.receiver_name AS receiver_name_4, t0.receiver_phone_number AS receiver_phone_number_5, t0.created_at AS created_at_6, t0.is_collected AS is_collected_7, t0.is_received AS is_received_8, t0.received_at AS received_at_9, t0.percel_count AS percel_count_10, t0.longitude AS longitude_11, t0.latitude AS latitude_12, t0.parcel_value AS parcel_value_13, t0.from_station_id AS from_station_id_14, t0.to_station_id AS to_station_id_15, t0.created_by AS created_by_16, t17.id AS id_18, t17.amount AS amount_19, t17.cash_amount AS cash_amount_20, t17.mpesa_amount AS mpesa_amount_21, t17.tax_percentage AS tax_percentage_22, t17.tax_amount AS tax_amount_23, t17.gross_amount AS gross_amount_24, t17.station_expenses AS station_expenses_25, t17.station_balance AS station_balance_26, t17.expenses AS expenses_27, t17.balance AS balance_28, t17.created_at AS created_at_29, t17.is_cancelled AS is_cancelled_30, t17.is_complete AS is_complete_31, t17.is_paid AS is_paid_32, t17.paid_by AS paid_by_33, t17.mpesa_payment_phone AS mpesa_payment_phone_34, t17.payment_method AS payment_method_35, t17.pin_number AS pin_number_36, t17.cu_invoice_number AS cu_invoice_number_37, t17.cu_invoice_number_credit AS cu_invoice_number_credit_38, t17.cu_serial_number AS cu_serial_number_39, t17.is_final AS is_final_40, t17.way_bill_id AS way_bill_id_41, t17.created_by AS created_by_42, t17.organization_id AS organization_id_43, t17.daily_account_id AS daily_account_id_44, t0.received_by AS received_by_45, t0.organization_id AS organization_id_46, t47.id AS id_48, t47.is_consignee AS is_consignee_49, t47.consignee_national_id AS consignee_national_id_50, t47.collector_name AS collector_name_51, t47.national_id AS national_id_52, t47.created_at AS created_at_53, t47.waybill_id AS waybill_id_54, t47.created_by AS created_by_55 FROM way_bill t0 LEFT JOIN transaction t17 ON t17.way_bill_id = t0.id LEFT JOIN collected_parcel t47 ON t47.waybill_id = t0.id WHERE t0.id = ?
Parameters:
[
  951043
]
1.69 ms
(9.73%)
1
SELECT t0.id AS id_1, t0.username AS username_2, t0.password AS password_3, t0.created_at AS created_at_4, t0.roles AS roles_5, t0.email AS email_6, t0.person_id AS person_id_7 FROM user t0 WHERE t0.id = ? LIMIT 1
Parameters:
[
  57
]
1.56 ms
(9.00%)
1
SELECT t0.id AS id_1, t0.amount AS amount_2, t0.cash_amount AS cash_amount_3, t0.mpesa_amount AS mpesa_amount_4, t0.tax_percentage AS tax_percentage_5, t0.tax_amount AS tax_amount_6, t0.gross_amount AS gross_amount_7, t0.station_expenses AS station_expenses_8, t0.station_balance AS station_balance_9, t0.expenses AS expenses_10, t0.balance AS balance_11, t0.created_at AS created_at_12, t0.is_cancelled AS is_cancelled_13, t0.is_complete AS is_complete_14, t0.is_paid AS is_paid_15, t0.paid_by AS paid_by_16, t0.mpesa_payment_phone AS mpesa_payment_phone_17, t0.payment_method AS payment_method_18, t0.pin_number AS pin_number_19, t0.cu_invoice_number AS cu_invoice_number_20, t0.cu_invoice_number_credit AS cu_invoice_number_credit_21, t0.cu_serial_number AS cu_serial_number_22, t0.is_final AS is_final_23, t0.way_bill_id AS way_bill_id_24, t0.created_by AS created_by_25, t0.organization_id AS organization_id_26, t0.daily_account_id AS daily_account_id_27 FROM transaction t0 WHERE t0.way_bill_id = ? LIMIT 1
Parameters:
[
  "951043"
]
1.36 ms
(7.83%)
1
SELECT t0.id AS id_1, t0.type AS type_2, t0.client AS client_3, t0.supplier_code AS supplier_code_4, t0.created_at AS created_at_5, t0.station AS station_6 FROM tims_station t0 WHERE t0.station = ? LIMIT 1
Parameters:
[
  2
]
1.21 ms
(6.96%)
2
SELECT t0.id AS id_1, t0.station_name AS station_name_2, t0.station_address AS station_address_3, t0.phone_numbers AS phone_numbers_4, t0.created_at AS created_at_5, t0.operating_hrs AS operating_hrs_6, t0.is_mobile AS is_mobile_7, t0.organization_id AS organization_id_8, t0.created_by AS created_by_9 FROM station t0 WHERE t0.id = ?
Parameters:
[
  35
]
1.01 ms
(5.81%)
1
SELECT t0.id AS id_1, t0.is_active AS is_active_2, t0.created_at AS created_at_3, t0.user AS user_4, t0.station_id AS station_id_5 FROM user_station t0 WHERE t0.user = ? LIMIT 1
Parameters:
[
  57
]
0.77 ms
(4.42%)
1
SELECT t0.id AS id_1, t0.port AS port_2, t0.com AS com_3, t0.serial_number AS serial_number_4, t0.location AS location_5, t0.is_default AS is_default_6, t0.created_at AS created_at_7 FROM etr t0 WHERE t0.is_default = ? LIMIT 1
Parameters:
[
  1
]
0.57 ms
(3.26%)
1
SELECT t0.id AS id_1, t0.first_name AS first_name_2, t0.second_name AS second_name_3, t0.sir_name AS sir_name_4, t0.gender AS gender_5, t0.national_id AS national_id_6, t0.phone_number AS phone_number_7, t0.created_at AS created_at_8, t0.date_of_birth AS date_of_birth_9, t0.preferred_name AS preferred_name_10, t0.created_by AS created_by_11 FROM person t0 WHERE t0.id = ?
Parameters:
[
  58
]
0.37 ms
(2.16%)
1
"START TRANSACTION"
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\Person No errors.
App\Entity\UserStation No errors.
App\Entity\Station No errors.
App\Entity\TimsStation No errors.
App\Entity\Transaction No errors.
App\Entity\WayBill
  • The field App\Entity\WayBill#collectedParcel is on the inverse side of a bi-directional relationship, but the specified mappedBy association on the target-entity App\Entity\CollectedParcel#waybill does not contain the required 'inversedBy="collectedParcel"' attribute.
App\Entity\Organization No errors.
App\Entity\DailyAccount No errors.
App\Entity\TransactionExpense No errors.
App\Entity\Parcel No errors.
App\Entity\Etr No errors.
App\Entity\CollectedParcel No errors.