GET http://dev-api.blue-test.be/v4/location/64/bikes

Query Metrics

94 Database Queries
6 Different statements
165.49 ms Query time
6 Invalid entities
115 Managed entities

Grouped Statements

Show all queries

Time▼ Count Info
38.99 ms
(23.56%)
23
SELECT t0.id AS id_1, t0.type AS type_2, t0.tag AS tag_3, t0.end AS end_4, t0.start AS start_5, t0.bike AS bike_6 FROM bike_tag t0 WHERE t0.bike = ?
Parameters:
[
  79
]
38.20 ms
(23.08%)
23
SELECT t0.id AS id_1, t0.provider AS provider_2, t0.uid AS uid_3, t0.bike AS bike_4 FROM bike_provider t0 WHERE t0.bike = ?
Parameters:
[
  79
]
38.15 ms
(23.05%)
23
SELECT t0.id AS id_1, t0.start AS start_2, t0.end AS end_3, t0.end_administrative AS end_administrative_4, t0.reason AS reason_5, t0.notes AS notes_6, t0.updated AS updated_7, t0.card AS card_8, t0.voucher AS voucher_9, t0.start_location AS start_location_10, t0.end_location AS end_location_11, t0.bike AS bike_12, t13.id AS id_14, t13.formula AS formula_15, t13.bikes_in_use AS bikes_in_use_16, t13.trip_id AS trip_id_17 FROM trip t0 LEFT JOIN trip_price_parameters t13 ON t13.trip_id = t0.id WHERE t0.id = ?
Parameters:
[
  1297552
]
37.62 ms
(22.73%)
23
SELECT t0.id AS id_1, t0.serial_number AS serial_number_2, t0.password AS password_3, t0.new_password AS new_password_4, t0.created AS created_5, t0.updated AS updated_6, t0.always_advertise AS always_advertise_7, t0.bike_id AS bike_id_8 FROM electronic_battery_pack_lock t0 WHERE t0.bike_id = ?
Parameters:
[
  79
]
10.57 ms
(6.39%)
1
SELECT CASE WHEN b0_.type = 2 THEN 1 WHEN b0_.type = 1 THEN 2 WHEN b0_.type = 3 THEN 3 ELSE 4 END AS sclr_0, b0_.id AS id_1, b0_.type AS type_2, b0_.generation AS generation_3, b0_.visual_id AS visual_id_4, b0_.start AS start_5, b0_.end AS end_6, b0_.state AS state_7, b0_.notes AS notes_8, b1_.id AS id_9, b1_.battery_voltage AS battery_voltage_10, b1_.battery_percentage AS battery_percentage_11, b1_.last_event AS last_event_12, b1_.location_lon AS location_lon_13, b1_.location_lat AS location_lat_14, b1_.estimated_range AS estimated_range_15, b1_.last_updated AS last_updated_16, b1_.availability_code AS availability_code_17, b1_.location_datetime AS location_datetime_18, b1_.availability_code_datetime AS availability_code_datetime_19, b1_.battery_percentage_last_updated AS battery_percentage_last_updated_20, b1_.estimated_range_last_updated AS estimated_range_last_updated_21, b0_.home_location AS home_location_22, b0_.last_trip AS last_trip_23, b0_.return_location_id AS return_location_id_24, b1_.bike_id AS bike_id_25 FROM bike b0_ LEFT JOIN bike_electric b1_ ON b0_.id = b1_.bike_id INNER JOIN trip t2_ ON (t2_.id = b0_.last_trip) WHERE b0_.state <> 2 AND (t2_.end_location = ? OR (t2_.end_location IS NULL AND t2_.start_location = ?)) AND b0_.return_location_id IS NULL GROUP BY b0_.id ORDER BY sclr_0 ASC, b1_.battery_percentage DESC, b0_.visual_id ASC
Parameters:
[
  64
  64
]
1.96 ms
(1.19%)
1
SELECT t0.id AS id_1, t0.external_id AS external_id_2, t0.type AS type_3, t0.state AS state_4, t0.name AS name_5, t0.latitude AS latitude_6, t0.longitude AS longitude_7, t0.radius AS radius_8, t0.lastseen AS lastseen_9, t0.ip AS ip_10, t0.capacity AS capacity_11, t0.notes AS notes_12, t0.created AS created_13, t0.retour_policy AS retour_policy_14, t0.acceptable_bikes AS acceptable_bikes_15, t0.zone AS zone_16, t17.num_bikes AS num_bikes_18, t17.num_in_use AS num_in_use_19, t17.num_available AS num_available_20, t17.num_defects AS num_defects_21, t17.num_retired AS num_retired_22, t17.available_electric_bikes AS available_electric_bikes_23, t17.unavailable_only_low_battery AS unavailable_only_low_battery_24, t17.available_cargo_bikes AS available_cargo_bikes_25, t17.available_city_bikes AS available_city_bikes_26, t17.location AS location_27, t0.pricing_zone_id AS pricing_zone_id_28 FROM location t0 LEFT JOIN location_stats t17 ON t17.location = t0.id WHERE t0.id = ?
Parameters:
[
  64
]

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\BikeTag 45
App\Entity\Bike 23
App\Entity\Trip 23
App\Entity\Token 17
App\Entity\Location 3
App\Entity\Ticket 3
App\Entity\LocationStats 1

Entities Mapping

Class Mapping errors
App\Entity\Location
  • The association App\Entity\Location#zone refers to the inverse side field App\Entity\LocationZone#locations which does not exist.
  • The association App\Entity\Location#pricing_zone refers to the inverse side field App\Entity\LocationPricingZone#locations which does not exist.
App\Entity\LocationZone No errors.
App\Entity\LocationStats No errors.
App\Entity\LocationPricingZone No errors.
App\Entity\LocationManager No errors.
App\Entity\LocationDetail No errors.
App\Entity\Bike
  • The association App\Entity\Bike#home_location refers to the inverse side field App\Entity\Location#bikes which does not exist.
  • The field App\Entity\Bike#defects is on the inverse side of a bi-directional relationship, but the specified mappedBy association on the target-entity App\Entity\BikeDefect#bike does not contain the required 'inversedBy: "defects"' attribute.
  • The field App\Entity\Bike#bikeTags is on the inverse side of a bi-directional relationship, but the specified mappedBy association on the target-entity App\Entity\BikeTag#bike does not contain the required 'inversedBy: "bikeTags"' attribute.
  • The association App\Entity\Bike#returnLocation refers to the inverse side field App\Entity\Location#bikes which does not exist.
App\Entity\BikeElectric No errors.
App\Entity\Trip
  • The association App\Entity\Trip#created refers to the owning side field App\Entity\Transaction#trip which is not defined as association, but as field.
  • The association App\Entity\Trip#created refers to the owning side field App\Entity\Transaction#trip which does not exist.
App\Entity\BikeDefect No errors.
App\Entity\BikeTag No errors.
App\Entity\BikeProvider No errors.
App\Entity\ElectronicBatteryPackLock No errors.
App\Entity\Token
  • The field App\Entity\Token#trips is on the inverse side of a bi-directional relationship, but the specified mappedBy association on the target-entity App\Entity\Trip#card does not contain the required 'inversedBy: "trips"' attribute.
App\Entity\Ticket
  • The field App\Entity\Ticket#trips is on the inverse side of a bi-directional relationship, but the specified mappedBy association on the target-entity App\Entity\Trip#ticket does not contain the required 'inversedBy: "trips"' attribute.
App\Entity\TripPriceParameters No errors.
App\Entity\Transaction
  • The field 'App\Entity\Transaction#trip' has the property type 'App\Entity\Trip' that differs from the metadata field type 'string' returned by the 'string' DBAL type.