Error 500 Internal Server Error

GET https://pharma.cassaclock.com/purchase-order-batch/new

Forwarded to ErrorController (b2b2f2)

Query Metrics

2 Database Queries
2 Different statements
2.98 ms Query time
4 Invalid entities
7 Managed entities

Queries

Group similar statements

# Time Info
1 1.88 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.description AS description_3, t0.barcode AS barcode_4, t0.purchase_price AS purchase_price_5, t0.selling_price AS selling_price_6, t0.stock_quantity AS stock_quantity_7, t0.min_stock_alert AS min_stock_alert_8, t0.unit AS unit_9, t0.image AS image_10, t0.is_active AS is_active_11, t0.created_at AS created_at_12, t0.updated_at AS updated_at_13, t0.category_id AS category_id_14, t0.supplier_id AS supplier_id_15 FROM products t0
Parameters:
[]
2 1.10 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.email AS email_3, t0.phone AS phone_4, t0.address AS address_5, t0.contact_person AS contact_person_6, t0.is_active AS is_active_7, t0.notes AS notes_8, t0.created_at AS created_at_9, t0.updated_at AS updated_at_10, t0.city AS city_11 FROM suppliers 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.

Managed Entities

default entity manager

Class Amount of managed objects
App\Entity\Supplier 5
App\Entity\Product 1
App\Entity\Category 1

Entities Mapping

Class Mapping 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.
App\Entity\Category No errors.
App\Entity\Supplier No errors.
App\Entity\StockMovement No errors.
App\Entity\SaleItem
  • The field 'App\Entity\SaleItem#unitPrice' has the property type 'float' that differs from the metadata field type 'string' returned by the 'decimal' DBAL type.
  • The field 'App\Entity\SaleItem#subtotal' 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\PurchaseOrder No 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\Sale
  • The field 'App\Entity\Sale#totalAmount' has the property type 'float' that differs from the metadata field type 'string' returned by the 'decimal' DBAL type.
  • The field 'App\Entity\Sale#amountPaid' has the property type 'float' that differs from the metadata field type 'string' returned by the 'decimal' DBAL type.
App\Entity\PurchaseOrderItem No errors.