https://app-beta.sigmatex.ma/employee_log_hour/new Return to referer URL

Query Metrics

16 Database Queries
15 Different statements
24.37 ms Query time
0 Invalid entities

Grouped Statements

Show all queries

Time Count Info
10.26 ms
(42.09%)
2
SELECT t0.id AS id_1, t0.date AS date_2, t0.comment AS comment_3, t0.in_out AS in_out_4, t0.created_at AS created_at_5, t0.updated_at AS updated_at_6, t0.employee_id AS employee_id_7 FROM employee_hour_log t0 WHERE t0.employee_id = ? ORDER BY t0.date ASC
Parameters:
[
  589
]
3.11 ms
(12.75%)
1
SELECT t0.id AS id_1, t0.date AS date_2, t0.comment AS comment_3, t0.in_out AS in_out_4, t0.created_at AS created_at_5, t0.updated_at AS updated_at_6, t0.employee_id AS employee_id_7 FROM employee_hour_log t0 WHERE t0.employee_id = ? AND t0.date = ?
Parameters:
[
  589
  "2024-09-30 19:00:00"
]
3.03 ms
(12.45%)
1
SELECT e0_.id AS id_0, e0_.first_name AS first_name_1, e0_.last_name AS last_name_2, e0_.date_of_birth AS date_of_birth_3, e0_.city_of_birth AS city_of_birth_4, e0_.gender AS gender_5, e0_.number_of_childrens AS number_of_childrens_6, e0_.phone_number AS phone_number_7, e0_.cin AS cin_8, e0_.cnss AS cnss_9, e0_.relation_ship_status AS relation_ship_status_10, e0_.picture AS picture_11, e0_.date_old AS date_old_12, e0_.date_cnss AS date_cnss_13, e0_.registration_number AS registration_number_14, e0_.created_at AS created_at_15, e0_.updated_at AS updated_at_16, e0_.user_id AS user_id_17, e0_.last_history_id AS last_history_id_18 FROM employee e0_ INNER JOIN employee_history e1_ ON e0_.last_history_id = e1_.id INNER JOIN employee_department e2_ ON e1_.department_id = e2_.id INNER JOIN employee_position e3_ ON e1_.position_id = e3_.id LEFT JOIN employee_hour_log e4_ ON e0_.id = e4_.employee_id WHERE ((e1_.salary_type = 2 AND e1_.end_date IS NULL) OR e1_.end_date <= 2024 - 09 - 30) AND e0_.id = ? ORDER BY e1_.department_id ASC, e3_.id ASC
Parameters:
[
  589
]
2.71 ms
(11.12%)
1
SELECT e0_.id AS id_0, e0_.date AS date_1, e0_.comment AS comment_2, e0_.in_out AS in_out_3, e0_.created_at AS created_at_4, e0_.updated_at AS updated_at_5, e0_.employee_id AS employee_id_6 FROM employee_hour_log e0_ WHERE e0_.employee_id = ? AND e0_.date LIKE ? ORDER BY e0_.date DESC LIMIT 1
Parameters:
[
  589
  "2024-09-30%"
]
1.47 ms
(6.05%)
1
"COMMIT"
Parameters:
[]
0.62 ms
(2.54%)
1
SELECT t0.id AS id_1, t0.email AS email_2, t0.roles AS roles_3, t0.password AS password_4, t0.active AS active_5, t0.google_id AS google_id_6, t0.avatar_name AS avatar_name_7, t0.user_role_id AS user_role_id_8, t9.id AS id_10, t9.first_name AS first_name_11, t9.last_name AS last_name_12, t9.date_of_birth AS date_of_birth_13, t9.city_of_birth AS city_of_birth_14, t9.gender AS gender_15, t9.number_of_childrens AS number_of_childrens_16, t9.phone_number AS phone_number_17, t9.cin AS cin_18, t9.cnss AS cnss_19, t9.relation_ship_status AS relation_ship_status_20, t9.picture AS picture_21, t9.date_old AS date_old_22, t9.date_cnss AS date_cnss_23, t9.registration_number AS registration_number_24, t9.created_at AS created_at_25, t9.updated_at AS updated_at_26, t9.user_id AS user_id_27, t9.last_history_id AS last_history_id_28 FROM user t0 LEFT JOIN employee t9 ON t9.user_id = t0.id WHERE t0.id = ?
Parameters:
[
  3
]
0.56 ms
(2.28%)
1
SELECT t0.id AS id_1, t0.first_name AS first_name_2, t0.last_name AS last_name_3, t0.date_of_birth AS date_of_birth_4, t0.city_of_birth AS city_of_birth_5, t0.gender AS gender_6, t0.number_of_childrens AS number_of_childrens_7, t0.phone_number AS phone_number_8, t0.cin AS cin_9, t0.cnss AS cnss_10, t0.relation_ship_status AS relation_ship_status_11, t0.picture AS picture_12, t0.date_old AS date_old_13, t0.date_cnss AS date_cnss_14, t0.registration_number AS registration_number_15, t0.created_at AS created_at_16, t0.updated_at AS updated_at_17, t0.user_id AS user_id_18, t0.last_history_id AS last_history_id_19 FROM employee t0 WHERE t0.id = ? LIMIT 1
Parameters:
[
  589
]
0.44 ms
(1.82%)
1
SELECT t0.id AS id_1, t0.name AS name_2 FROM employee_position t0 WHERE t0.id = ?
Parameters:
[
  18
]
0.44 ms
(1.81%)
1
INSERT INTO employee_hour_log (date, comment, in_out, created_at, updated_at, employee_id) VALUES (?, ?, ?, ?, ?, ?)
Parameters:
[
  "2024-09-30 19:00:00"
  null
  2
  null
  null
  589
]
0.37 ms
(1.53%)
1
SELECT t0.id AS id_1, t0.first_name AS first_name_2, t0.last_name AS last_name_3, t0.date_of_birth AS date_of_birth_4, t0.city_of_birth AS city_of_birth_5, t0.gender AS gender_6, t0.number_of_childrens AS number_of_childrens_7, t0.phone_number AS phone_number_8, t0.cin AS cin_9, t0.cnss AS cnss_10, t0.relation_ship_status AS relation_ship_status_11, t0.picture AS picture_12, t0.date_old AS date_old_13, t0.date_cnss AS date_cnss_14, t0.registration_number AS registration_number_15, t0.created_at AS created_at_16, t0.updated_at AS updated_at_17, t0.user_id AS user_id_18, t0.last_history_id AS last_history_id_19 FROM employee t0 WHERE t0.id = ?
Parameters:
[
  589
]
0.37 ms
(1.52%)
1
SELECT t0.id AS id_1, t0.start_date AS start_date_2, t0.end_date AS end_date_3, t0.reason AS reason_4, t0.salary_type AS salary_type_5, t0.price AS price_6, t0.department_id AS department_id_7, t0.position_id AS position_id_8, t0.employee_id AS employee_id_9 FROM employee_history t0 WHERE t0.id = ?
Parameters:
[
  1255
]
0.32 ms
(1.31%)
1
SELECT t0.id AS id_1, t0.name AS name_2 FROM employee_department t0 WHERE t0.id = ?
Parameters:
[
  4
]
0.29 ms
(1.20%)
1
SELECT t0.id AS id_1, t0.email AS email_2, t0.roles AS roles_3, t0.password AS password_4, t0.active AS active_5, t0.google_id AS google_id_6, t0.avatar_name AS avatar_name_7, t0.user_role_id AS user_role_id_8, t9.id AS id_10, t9.first_name AS first_name_11, t9.last_name AS last_name_12, t9.date_of_birth AS date_of_birth_13, t9.city_of_birth AS city_of_birth_14, t9.gender AS gender_15, t9.number_of_childrens AS number_of_childrens_16, t9.phone_number AS phone_number_17, t9.cin AS cin_18, t9.cnss AS cnss_19, t9.relation_ship_status AS relation_ship_status_20, t9.picture AS picture_21, t9.date_old AS date_old_22, t9.date_cnss AS date_cnss_23, t9.registration_number AS registration_number_24, t9.created_at AS created_at_25, t9.updated_at AS updated_at_26, t9.user_id AS user_id_27, t9.last_history_id AS last_history_id_28 FROM user t0 LEFT JOIN employee t9 ON t9.user_id = t0.id WHERE t0.email = ? LIMIT 1
Parameters:
[
  "n.bouaziz@sigmatex.ma"
]
0.26 ms
(1.06%)
1
"START TRANSACTION"
Parameters:
[]
0.12 ms
(0.48%)
1
SELECT t0.id AS id_1, t0.name AS name_2, t0.permissions AS permissions_3 FROM user_role t0 WHERE t0.id = ?
Parameters:
[
  3
]

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\User No errors.
App\Entity\UserRole No errors.
App\Entity\Employee No errors.
App\Entity\EmployeeHistory No errors.
App\Entity\EmployeeHourLog No errors.
App\Entity\EmployeeAdvance No errors.
App\Entity\EmployeeDepartment No errors.
App\Entity\EmployeePosition No errors.
App\Entity\EmployeeSalaryBonusHistory No errors.
App\Entity\EmployeeHourCount No errors.