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

Grouped Statements

Show all queries

Time Count Info
8.86 ms
(36.81%)
1
SELECT COUNT(t0_.id) AS sclr_0 FROM transit t0_
Parameters:
[]
4.83 ms
(20.06%)
3
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
]
4.32 ms
(17.97%)
1
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.04 ms
(8.47%)
1
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:
[]
1.92 ms
(7.99%)
4
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
]
1.40 ms
(5.80%)
2
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
]
0.70 ms
(2.89%)
2
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
]

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.