GET https://preprod.api.agenceauto.com/fr/api/news?maxPerPage=3&page=1

Query Metrics

12 Database Queries
7 Different statements
1.90 ms Query time
2 Invalid entities
19 Managed entities

Queries

Group similar statements

# Time Info
1 0.05 ms
SELECT t0.id AS id_1, t0.code AS code_2, t0.tax AS tax_3, t0.reference_eloa AS reference_eloa_4, t0.label AS label_5 FROM country t0 WHERE t0.code = ? LIMIT 1
Parameters:
[
  "fr"
]
2 0.05 ms
SELECT COUNT(*) AS dctrn_count FROM (SELECT DISTINCT id_0 FROM (SELECT n0_.id AS id_0, n0_.name AS name_1, n0_.description AS description_2, n0_.active AS active_3, n0_.public AS public_4, n0_.slug AS slug_5, n0_.created AS created_6, n0_.updated AS updated_7 FROM news n0_ WHERE n0_.active IN (?) AND n0_.public IN (?) ORDER BY n0_.id DESC) dctrn_result) dctrn_table
Parameters:
[
  true
  true
]
3 0.03 ms
SELECT DISTINCT id_0 FROM (SELECT DISTINCT id_0 FROM (SELECT n0_.id AS id_0, n0_.name AS name_1, n0_.description AS description_2, n0_.active AS active_3, n0_.public AS public_4, n0_.slug AS slug_5, n0_.created AS created_6, n0_.updated AS updated_7 FROM news n0_ WHERE n0_.active IN (?) AND n0_.public IN (?)) dctrn_result_inner ORDER BY id_0 DESC) dctrn_result LIMIT 3
Parameters:
[
  true
  true
]
4 1.52 ms
SELECT n0_.id AS id_0, n0_.name AS name_1, n0_.description AS description_2, n0_.active AS active_3, n0_.public AS public_4, n0_.slug AS slug_5, n0_.created AS created_6, n0_.updated AS updated_7, n0_.image_id AS image_id_8, n0_.creator_id AS creator_id_9, n0_.news_category_id AS news_category_id_10 FROM news n0_ WHERE n0_.active IN (?) AND n0_.public IN (?) AND n0_.id IN (?, ?, ?) ORDER BY n0_.id DESC
Parameters:
[
  true
  true
  1658
  1586
  1569
]
5 0.04 ms
SELECT t0.id AS id_1, t0.name AS name_2 FROM news_category t0 WHERE t0.id = ?
Parameters:
[
  2
]
6 0.04 ms
SELECT t0.id AS id_1, t0.image AS image_2, t0.position AS position_3, t0.eloa_url AS eloa_url_4, t0.eloa_order AS eloa_order_5, t0.created_at AS created_at_6, t0.updated_at AS updated_at_7, t0.agency_id AS agency_id_8, t0.vehicle_id AS vehicle_id_9 FROM image t0 WHERE t0.id = ?
Parameters:
[
  4183411
]
7 0.03 ms
SELECT t0.id AS id_1, t0.code AS code_2, t0.tax AS tax_3, t0.reference_eloa AS reference_eloa_4, t0.label AS label_5 FROM country t0 INNER JOIN news_country ON t0.id = news_country.country_id WHERE news_country.news_id = ?
Parameters:
[
  1658
]
8 0.03 ms
SELECT t0.id AS id_1, t0.image AS image_2, t0.position AS position_3, t0.eloa_url AS eloa_url_4, t0.eloa_order AS eloa_order_5, t0.created_at AS created_at_6, t0.updated_at AS updated_at_7, t0.agency_id AS agency_id_8, t0.vehicle_id AS vehicle_id_9 FROM image t0 WHERE t0.id = ?
Parameters:
[
  3820467
]
9 0.03 ms
SELECT t0.id AS id_1, t0.code AS code_2, t0.tax AS tax_3, t0.reference_eloa AS reference_eloa_4, t0.label AS label_5 FROM country t0 INNER JOIN news_country ON t0.id = news_country.country_id WHERE news_country.news_id = ?
Parameters:
[
  1586
]
10 0.03 ms
SELECT t0.id AS id_1, t0.name AS name_2 FROM news_category t0 WHERE t0.id = ?
Parameters:
[
  21
]
11 0.03 ms
SELECT t0.id AS id_1, t0.image AS image_2, t0.position AS position_3, t0.eloa_url AS eloa_url_4, t0.eloa_order AS eloa_order_5, t0.created_at AS created_at_6, t0.updated_at AS updated_at_7, t0.agency_id AS agency_id_8, t0.vehicle_id AS vehicle_id_9 FROM image t0 WHERE t0.id = ?
Parameters:
[
  3755850
]
12 0.03 ms
SELECT t0.id AS id_1, t0.code AS code_2, t0.tax AS tax_3, t0.reference_eloa AS reference_eloa_4, t0.label AS label_5 FROM country t0 INNER JOIN news_country ON t0.id = news_country.country_id WHERE news_country.news_id = ?
Parameters:
[
  1569
]

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\Country 9
App\Entity\News 3
App\Entity\Image 3
App\Entity\User 2
App\Entity\NewsCategory 2

Entities Mapping

Class Mapping errors
App\Entity\Country No errors.
App\Entity\Department No errors.
App\Entity\News No errors.
App\Entity\Image No errors.
App\Entity\User
  • The mappings App\Entity\User#relaunch and App\Entity\Relaunch#user are inconsistent with each other.
  • The field App\Entity\User#saleAgreements is on the inverse side of a bi-directional relationship, but the specified mappedBy association on the target-entity App\Entity\SaleAgreement#user does not contain the required 'inversedBy="saleAgreements"' attribute.
  • The field App\Entity\User#invoices is on the inverse side of a bi-directional relationship, but the specified mappedBy association on the target-entity App\Entity\Invoice#user does not contain the required 'inversedBy="invoices"' attribute.
App\Entity\NewsCategory No errors.
App\Entity\Agency No errors.
App\Entity\Vehicle
  • The field App\Entity\Vehicle#saleAgreements is on the inverse side of a bi-directional relationship, but the specified mappedBy association on the target-entity App\Entity\SaleAgreement#vehicle does not contain the required 'inversedBy="saleAgreements"' attribute.
  • The field App\Entity\Vehicle#invoices is on the inverse side of a bi-directional relationship, but the specified mappedBy association on the target-entity App\Entity\Invoice#vehicle does not contain the required 'inversedBy="invoices"' attribute.