https://courier.ohau.co.ke/api/deliveries/incoming/1/63245

Query Metrics

5 Database Queries
5 Different statements
11.53 ms Query time
2 Invalid entities

Queries

Group similar statements

# Time Info
1 1.46 ms
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:
[
  53
]
2 1.50 ms
SELECT d0_.id AS id_0, d0_.is_received_fully AS is_received_fully_1, d0_.parcel_count AS parcel_count_2, s1_.id AS id_3, s1_.station_name AS station_name_4, s2_.id AS id_5, s2_.station_name AS station_name_6, d0_.is_cancelled AS is_cancelled_7, d0_.is_received AS is_received_8, d0_.is_loaded AS is_loaded_9, u3_.id AS id_10, u4_.id AS id_11, d0_.received_parcels AS received_parcels_12 FROM delivery d0_ INNER JOIN station s1_ ON d0_.destination = s1_.id INNER JOIN station s2_ ON d0_.origin_station = s2_.id INNER JOIN user u3_ ON d0_.loaded_by = u3_.id INNER JOIN user u4_ ON d0_.created_by = u4_.id WHERE d0_.id = ? AND s1_.id = ?
Parameters:
[
  "63245"
  "1"
]
3 6.60 ms
SELECT d0_.id AS id_0, d1_.id AS id_1, d0_.is_received AS is_received_2, u2_.id AS id_3, p3_.id AS id_4, d0_.is_cancelled AS is_cancelled_5, d0_.cancelled_because AS cancelled_because_6, p3_.description AS description_7, d1_.is_received_fully AS is_received_fully_8, p3_.number AS number_9, w4_.id AS id_10, w4_.sender_name AS sender_name_11, w4_.sender_phone_number AS sender_phone_number_12, w4_.receiver_name AS receiver_name_13, w4_.receiver_phone_number AS receiver_phone_number_14, s5_.id AS id_15, s6_.id AS id_16, s6_.station_name AS station_name_17, DATE_FORMAT(w4_.created_at, '%Y-%m-%d %H:%i:%s') AS sclr_18, t7_.id AS id_19, t7_.amount AS amount_20, w4_.is_collected AS is_collected_21, o8_.id AS id_22, w4_.percel_count AS percel_count_23 FROM delivery_parcel d0_ INNER JOIN parcel p3_ ON d0_.parcel_id = p3_.id INNER JOIN delivery d1_ ON d0_.delivery_id = d1_.id INNER JOIN user u2_ ON d0_.created_by = u2_.id INNER JOIN way_bill w4_ ON p3_.way_bill_id = w4_.id INNER JOIN station s5_ ON w4_.from_station_id = s5_.id INNER JOIN station s6_ ON w4_.to_station_id = s6_.id INNER JOIN transaction t7_ ON w4_.id = t7_.way_bill_id INNER JOIN organization o8_ ON w4_.organization_id = o8_.id WHERE d1_.is_cancelled = 0 AND d0_.is_cancelled = 0 AND d1_.is_verified = 1 AND d1_.id = ?
Parameters:
[
  "63245"
]
4 1.16 ms
SELECT t0.id AS id_1, t0.is_verified AS is_verified_2, t0.verified_at AS verified_at_3, t0.is_cancelled AS is_cancelled_4, t0.cancelled_at AS cancelled_at_5, t0.created_at AS created_at_6, t0.delivery_id AS delivery_id_7, t0.vehicle_id AS vehicle_id_8, t0.verified_by AS verified_by_9, t0.cancelled_by AS cancelled_by_10, t0.created_by AS created_by_11 FROM delivery_vehicle t0 WHERE t0.delivery_id = ? ORDER BY t0.id DESC LIMIT 1
Parameters:
[
  "63245"
]
5 0.83 ms
SELECT t0.id AS id_1, t0.reg_number AS reg_number_2, t0.passenger_capacity AS passenger_capacity_3, t0.vehicle_name AS vehicle_name_4, t0.manufacture_year AS manufacture_year_5, t0.fuel AS fuel_6, t0.created_at AS created_at_7, t0.model_id AS model_id_8, t0.created_by AS created_by_9 FROM vehicle t0 WHERE t0.id = ?
Parameters:
[
  2189
]

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\Delivery
  • The field App\Entity\Delivery#deliveryVehicle is on the inverse side of a bi-directional relationship, but the specified mappedBy association on the target-entity App\Entity\DeliveryVehicle#delivery does not contain the required 'inversedBy="deliveryVehicle"' attribute.
App\Entity\Station No errors.
App\Entity\DeliveryParcel No errors.
App\Entity\Parcel 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\Transaction No errors.
App\Entity\Organization No errors.
App\Entity\DeliveryVehicle No errors.
App\Entity\Vehicle No errors.
App\Entity\Model No errors.