GET http://82.66.25.12:8081/best-deals?page=2

Query Metrics

100 Database Queries
5 Different statements
20.82 ms Query time
4 Invalid entities

Grouped Statements

Show all queries

Time Count Info
13.21 ms
(63.46%)
70
SELECT COUNT(*) FROM vote t0 WHERE t0.deal_id = ? AND t0.type_vote = ?
Parameters:
[
  36
  "upvote"
]
2.75 ms
(13.20%)
10
SELECT t0.id AS id_1, t0.name_category AS name_category_2, t0.categories_id AS categories_id_3 FROM category t0 INNER JOIN deal_category ON t0.id = deal_category.category_id WHERE deal_category.deal_id = ?
Parameters:
[
  64
]
2.24 ms
(10.74%)
10
SELECT t0.id AS id_1, t0.content AS content_2, t0.comment_time AS comment_time_3, t0.user_id AS user_id_4, t0.deal_id AS deal_id_5, t0.parent_id AS parent_id_6 FROM COMMENT t0 WHERE t0.deal_id = ?
Parameters:
[
  64
]
1.87 ms
(9.00%)
9
SELECT t0.id AS id_1, t0.email AS email_2, t0.roles AS roles_3, t0.password AS password_4, t0.firstname AS firstname_5, t0.lastname AS lastname_6, t0.inscription_time AS inscription_time_7, t0.username AS username_8 FROM user t0 WHERE t0.id = ?
Parameters:
[
  32
]
0.75 ms
(3.61%)
1
SELECT t0.id AS id_1, t0.title AS title_2, t0.description AS description_3, t0.initialprice AS initialprice_4, t0.reduceprice AS reduceprice_5, t0.publicationdate AS publicationdate_6, t0.link AS link_7, t0.delivery AS delivery_8, t0.image_filename AS image_filename_9, t0.is_active AS is_active_10, t0.is_published AS is_published_11, t0.user_id AS user_id_12 FROM deal t0
Parameters:
[]

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\Deal
  • The mappings App\Entity\Deal#user and App\Entity\User#deals are inconsistent with each other.
App\Entity\User
  • The association App\Entity\User#deals refers to the owning side field App\Entity\Deal#idUser which does not exist.
  • The association App\Entity\User#comments refers to the owning side field App\Entity\Comment#User which does not exist.
  • The association App\Entity\User#votes refers to the owning side field App\Entity\Vote#User which does not exist.
App\Entity\Comment
  • The mappings App\Entity\Comment#user and App\Entity\User#comments are inconsistent with each other.
App\Entity\Vote
  • The mappings App\Entity\Vote#user and App\Entity\User#votes are inconsistent with each other.
App\Entity\Category No errors.