GET https://manager.crateflow.co.za/api/v1/transits

Query Metrics

14 Database Queries
7 Different statements
24.06 ms Query time
2 Invalid entities
19 Managed entities

Queries

Group similar statements

# Time Info
1 4.32 ms
SELECT t0.id AS id_1, t0.email AS email_2, t0.name AS name_3, t0.usertype AS usertype_4, t0.roles AS roles_5, t0.password AS password_6, t0.created_at AS created_at_7, t0.updated_at AS updated_at_8, t0.company_id AS company_id_9, t0.user_task_id AS user_task_id_10 FROM "user" t0 WHERE t0.email = ? LIMIT 1
Parameters:
[
  "jon@jwag.co.za"
]
2 8.86 ms
SELECT COUNT(t0_.id) AS sclr_0 FROM transit t0_
Parameters:
[]
3 2.04 ms
SELECT t0.id AS id_1, t0.docid AS docid_2, t0.qty AS qty_3, t0.created_at AS created_at_4, t0.updated_at AS updated_at_5, t0.driver_id AS driver_id_6, t0.inventory_id AS inventory_id_7, t0.fromlocation_id AS fromlocation_id_8, t0.tolocation_id AS tolocation_id_9, t0.vehicle_id AS vehicle_id_10 FROM transit t0 ORDER BY t0.created_at DESC LIMIT 5
Parameters:
[]
4 0.37 ms
SELECT t0.id AS id_1, t0.email AS email_2, t0.name AS name_3, t0.usertype AS usertype_4, t0.roles AS roles_5, t0.password AS password_6, t0.created_at AS created_at_7, t0.updated_at AS updated_at_8, t0.company_id AS company_id_9, t0.user_task_id AS user_task_id_10 FROM "user" t0 WHERE t0.id = ?
Parameters:
[
  5
]
5 1.20 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.registration AS registration_3, t0.created_at AS created_at_4, t0.updated_at AS updated_at_5, t0.driver_id AS driver_id_6, t0.company_id AS company_id_7 FROM vehicle t0 WHERE t0.id = ?
Parameters:
[
  2
]
6 0.44 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.description AS description_3, t0.telephone AS telephone_4, t0.mobile AS mobile_5, t0.email AS email_6, t0.address AS address_7, t0.latitude AS latitude_8, t0.longitude AS longitude_9, t0.created_at AS created_at_10, t0.updated_at AS updated_at_11, t0.company_id AS company_id_12 FROM location t0 WHERE t0.id = ?
Parameters:
[
  9
]
7 1.03 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.description AS description_3, t0.telephone AS telephone_4, t0.mobile AS mobile_5, t0.email AS email_6, t0.address AS address_7, t0.latitude AS latitude_8, t0.longitude AS longitude_9, t0.created_at AS created_at_10, t0.updated_at AS updated_at_11, t0.company_id AS company_id_12 FROM location t0 WHERE t0.id = ?
Parameters:
[
  7
]
8 3.70 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.description AS description_3, t0.invtype AS invtype_4, t0.created_at AS created_at_5, t0.updated_at AS updated_at_6, t0.company_id AS company_id_7 FROM inventory t0 WHERE t0.id = ?
Parameters:
[
  2
]
9 0.84 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.description AS description_3, t0.invtype AS invtype_4, t0.created_at AS created_at_5, t0.updated_at AS updated_at_6, t0.company_id AS company_id_7 FROM inventory t0 WHERE t0.id = ?
Parameters:
[
  1
]
10 0.29 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.description AS description_3, t0.invtype AS invtype_4, t0.created_at AS created_at_5, t0.updated_at AS updated_at_6, t0.company_id AS company_id_7 FROM inventory t0 WHERE t0.id = ?
Parameters:
[
  5
]
11 0.33 ms
SELECT t0.id AS id_1, t0.email AS email_2, t0.name AS name_3, t0.usertype AS usertype_4, t0.roles AS roles_5, t0.password AS password_6, t0.created_at AS created_at_7, t0.updated_at AS updated_at_8, t0.company_id AS company_id_9, t0.user_task_id AS user_task_id_10 FROM "user" t0 WHERE t0.id = ?
Parameters:
[
  15
]
12 0.20 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.registration AS registration_3, t0.created_at AS created_at_4, t0.updated_at AS updated_at_5, t0.driver_id AS driver_id_6, t0.company_id AS company_id_7 FROM vehicle t0 WHERE t0.id = ?
Parameters:
[
  9
]
13 0.24 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.description AS description_3, t0.telephone AS telephone_4, t0.mobile AS mobile_5, t0.email AS email_6, t0.address AS address_7, t0.latitude AS latitude_8, t0.longitude AS longitude_9, t0.created_at AS created_at_10, t0.updated_at AS updated_at_11, t0.company_id AS company_id_12 FROM location t0 WHERE t0.id = ?
Parameters:
[
  6
]
14 0.21 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.description AS description_3, t0.telephone AS telephone_4, t0.mobile AS mobile_5, t0.email AS email_6, t0.address AS address_7, t0.latitude AS latitude_8, t0.longitude AS longitude_9, t0.created_at AS created_at_10, t0.updated_at AS updated_at_11, t0.company_id AS company_id_12 FROM location 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.

Managed Entities

default entity manager

Class Amount of managed objects
App\Entity\Transit 5
App\Entity\User 4
App\Entity\Location 4
App\Entity\Inventory 3
App\Entity\Vehicle 2
App\Entity\Company 1

Entities Mapping

Class Mapping errors
App\Entity\User
  • The field App\Entity\User#userTask is on the owning side of a bi-directional relationship, but the specified inversedBy association on the target-entity App\Entity\UserTask#taskUser does not contain the required 'mappedBy="userTask"' attribute.
  • If association App\Entity\User#userTask is many-to-one, then the inversed side App\Entity\UserTask#taskUser has to be one-to-many.
App\Entity\Company No errors.
App\Entity\UserTask
  • The association App\Entity\UserTask#taskUser refers to the inverse side field App\Entity\User#user_tasks which does not exist.
App\Entity\Transit No errors.
App\Entity\Timelog No errors.
App\Entity\Vehicle No errors.
App\Entity\Inventory No errors.
App\Entity\Location No errors.
App\Entity\Stock No errors.