GET https://pharma.cassaclock.com/admin/stock-batch

Query Metrics

5 Database Queries
5 Different statements
5.08 ms Query time
2 Invalid entities
1 Managed entities

Queries

Group similar statements

# Time Info
1 1.51 ms
SELECT t0.id AS id_1, t0.full_name AS full_name_2, t0.email AS email_3, t0.phone AS phone_4, t0.password AS password_5, t0.roles AS roles_6, t0.position AS position_7, t0.salary AS salary_8, t0.hire_date AS hire_date_9, t0.address AS address_10, t0.is_active AS is_active_11, t0.created_at AS created_at_12 FROM employees t0 WHERE t0.id = ?
Parameters:
[
  5
]
2 1.50 ms
SELECT t0.id AS id_1, t0.batch_number AS batch_number_2, t0.quantity AS quantity_3, t0.expiration_date AS expiration_date_4, t0.received_at AS received_at_5, t0.supplier AS supplier_6, t0.purchase_price AS purchase_price_7, t0.status AS status_8, t0.notes AS notes_9, t0.product_id AS product_id_10, t0.received_by_id AS received_by_id_11 FROM stock_batch t0 WHERE t0.status = ? ORDER BY t0.expiration_date ASC
Parameters:
[
  "active"
]
3 0.59 ms
SELECT COUNT(s0_.id) AS sclr_0 FROM stock_batch s0_ WHERE s0_.quantity > 0
Parameters:
[]
4 0.42 ms
SELECT COUNT(s0_.id) AS sclr_0 FROM stock_batch s0_ WHERE s0_.expiration_date < ? AND s0_.status = ? AND s0_.quantity > 0
Parameters:
[
  "2026-01-19 20:02:41"
  "active"
]
5 1.06 ms
SELECT s0_.id AS id_0, s0_.batch_number AS batch_number_1, s0_.quantity AS quantity_2, s0_.expiration_date AS expiration_date_3, s0_.received_at AS received_at_4, s0_.supplier AS supplier_5, s0_.purchase_price AS purchase_price_6, s0_.status AS status_7, s0_.notes AS notes_8, s0_.product_id AS product_id_9, s0_.received_by_id AS received_by_id_10 FROM stock_batch s0_ LEFT JOIN products p1_ ON s0_.product_id = p1_.id WHERE (s0_.expiration_date BETWEEN ? AND ?) AND s0_.status = ? AND s0_.quantity > 0 ORDER BY s0_.expiration_date ASC
Parameters:
[
  "2026-01-19 20:02:41"
  "2026-02-18 20:02:41"
  "active"
]

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\Employee 1

Entities Mapping

Class Mapping errors
App\Entity\Employee
  • The field 'App\Entity\Employee#salary' has the property type 'float' that differs from the metadata field type 'string' returned by the 'decimal' DBAL type.
App\Entity\StockBatch No errors.
App\Entity\Product
  • The field 'App\Entity\Product#purchasePrice' has the property type 'float' that differs from the metadata field type 'string' returned by the 'decimal' DBAL type.
  • The field 'App\Entity\Product#sellingPrice' has the property type 'float' that differs from the metadata field type 'string' returned by the 'decimal' DBAL type.
  • The association App\Entity\Product#supplier refers to the inverse side field App\Entity\Supplier#products which does not exist.
  • The field App\Entity\Product#stockMovements is on the inverse side of a bi-directional relationship, but the specified mappedBy association on the target-entity App\Entity\StockMovement#product does not contain the required 'inversedBy: "stockMovements"' attribute.