POST http://rc.liftapp.it/api/extraordinary_jobs/get_materials

Query Metrics

6 Database Queries
6 Different statements
2.78 ms Query time
6 Invalid entities

Queries

Group similar statements

# Time Info
1 0.37 ms
SELECT t0.created_at AS created_at_1, t0.updated_at AS updated_at_2, t0.deleted_at AS deleted_at_3, t0.id AS id_4, t0.email AS email_5, t0.roles AS roles_6, t0.username AS username_7, t0.password AS password_8, t0.last_access AS last_access_9 FROM sys_user t0 WHERE t0.id = ?
Parameters:
[
  3
]
2 0.48 ms
SELECT s0_.created_at AS created_at_0, s0_.updated_at AS updated_at_1, s0_.deleted_at AS deleted_at_2, s0_.id AS id_3, s0_.name AS name_4, s0_.road AS road_5, s0_.house_number AS house_number_6, s0_.city AS city_7, s0_.cap AS cap_8, s0_.province AS province_9, s0_.state AS state_10, s0_.country AS country_11, s0_.company_type AS company_type_12, s0_.phone AS phone_13, s0_.mail AS mail_14 FROM sys_company s0_ WHERE s0_.id = ?
Parameters:
[
  3
]
3 0.54 ms
SELECT j0_.created_at AS created_at_0, j0_.updated_at AS updated_at_1, j0_.deleted_at AS deleted_at_2, j0_.id AS id_3, j0_.expected_man_hours AS expected_man_hours_4, j0_.price_man_hour AS price_man_hour_5, j0_.job_total_price AS job_total_price_6, j0_.total_advanced_payment AS total_advanced_payment_7, j0_.job_offer_price AS job_offer_price_8, j0_.total_work_price AS total_work_price_9, j0_.name AS name_10, j0_.description AS description_11, j0_.status AS status_12, j0_.offer_number AS offer_number_13, j0_.offer_date AS offer_date_14, j0_.job_total_price_material AS job_total_price_material_15, j0_.priority AS priority_16, j0_.offer_acceptance_date AS offer_acceptance_date_17, j0_.relief_enabled AS relief_enabled_18, j0_.installation_enabled AS installation_enabled_19, j0_.material_enabled AS material_enabled_20, j0_.documentation_enabled AS documentation_enabled_21, j0_.documentation_ready AS documentation_ready_22, j0_.order_ref AS order_ref_23, j0_.type AS type_24, j0_.company_id AS company_id_25, j0_.implant_id AS implant_id_26 FROM job j0_ WHERE (j0_.company_id = ? AND j0_.deleted_at IS NULL AND j0_.id = ?) AND j0_.type IN (1)
Parameters:
[
  3
  42
]
4 0.50 ms
SELECT t0.created_at AS created_at_1, t0.updated_at AS updated_at_2, t0.deleted_at AS deleted_at_3, t0.id AS id_4, t0.warehouse_quantity AS warehouse_quantity_5, t0.quantity AS quantity_6, t0.ordered_quantity AS ordered_quantity_7, t0.unit_cost AS unit_cost_8, t0.total_cost AS total_cost_9, t0.order_number AS order_number_10, t0.ddt AS ddt_11, t0.order_date AS order_date_12, t0.serial_number AS serial_number_13, t0.installation_date AS installation_date_14, t0.expiration_date AS expiration_date_15, t0.jobs_id AS jobs_id_16, t0.material_id AS material_id_17, t0.supplier_id AS supplier_id_18, t0.order_id AS order_id_19 FROM coll_job_material t0 WHERE t0.jobs_id = ?
Parameters:
[
  42
]
5 0.41 ms
SELECT t0.created_at AS created_at_1, t0.updated_at AS updated_at_2, t0.deleted_at AS deleted_at_3, t0.id AS id_4, t0.name AS name_5, t0.measurement_unit AS measurement_unit_6, t0.conformity_declaration AS conformity_declaration_7, t0.internal_code AS internal_code_8, t0.company_id AS company_id_9 FROM material t0 WHERE t0.id = ?
Parameters:
[
  21
]
6 0.48 ms
SELECT t0.created_at AS created_at_1, t0.updated_at AS updated_at_2, t0.deleted_at AS deleted_at_3, t0.id AS id_4, t0.name AS name_5, t0.cf AS cf_6, t0.role AS role_7, t0.road AS road_8, t0.house_number AS house_number_9, t0.city AS city_10, t0.cap AS cap_11, t0.province AS province_12, t0.email AS email_13, t0.telephone AS telephone_14, t0.cellphone AS cellphone_15, t0.p_iva AS p_iva_16, t0.state AS state_17, t0.notes AS notes_18, t0.company_id AS company_id_19, t0.type FROM registry t0 WHERE t0.id = ? AND t0.type IN ('4')
Parameters:
[
  6
]

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\BaseEntity No errors.
App\Entity\SysUser
  • The mappings App\Entity\SysUser#sysRoles and App\Entity\CollSysUserSysCompany#user are inconsistent with each other.
App\Entity\CollSysUserSysCompany
  • The association App\Entity\CollSysUserSysCompany#user refers to the inverse side field App\Entity\SysUser#roles which is not defined as association.
  • The association App\Entity\CollSysUserSysCompany#user refers to the inverse side field App\Entity\SysUser#roles which does not exist.
App\Entity\Job No errors.
App\Entity\ExtraordinaryJob No errors.
App\Entity\SysCompany No errors.
App\Entity\Registry No errors.
App\Entity\SysCompanyAddresses No errors.
App\Entity\Implant
  • The field App\Entity\Implant#jobs is on the inverse side of a bi-directional relationship, but the specified mappedBy association on the target-entity App\Entity\Job#implant does not contain the required 'inversedBy="jobs"' attribute.
App\Entity\WorkOrder No errors.
App\Entity\OnSiteJob No errors.
App\Entity\Relief No errors.
App\Entity\CollJobMaterial No errors.
App\Entity\CollJobPayment No errors.
App\Entity\Material No errors.
App\Entity\Supplier
  • The field App\Entity\Supplier#jobMaterials is on the inverse side of a bi-directional relationship, but the specified mappedBy association on the target-entity App\Entity\CollJobMaterial#supplier does not contain the required 'inversedBy="jobMaterials"' attribute.
  • The field App\Entity\Supplier#orders is on the inverse side of a bi-directional relationship, but the specified mappedBy association on the target-entity App\Entity\Order#supplier does not contain the required 'inversedBy="orders"' attribute.
App\Entity\Order
  • The field 'App\Entity\Order#totalAmount' has the property type 'float' that differs from the metadata field type 'string' returned by the 'decimal' DBAL type.
  • The field App\Entity\Order#jobMaterials is on the inverse side of a bi-directional relationship, but the specified mappedBy association on the target-entity App\Entity\CollJobMaterial#order does not contain the required 'inversedBy="jobMaterials"' attribute.
App\Entity\CollMaterialSupplier No errors.
App\Entity\OrderItem
  • The field 'App\Entity\OrderItem#quantity' has the property type 'float' that differs from the metadata field type 'string' returned by the 'decimal' DBAL type.
  • The field 'App\Entity\OrderItem#unitPrice' has the property type 'float' that differs from the metadata field type 'string' returned by the 'decimal' DBAL type.
  • The field 'App\Entity\OrderItem#vatPercentage' has the property type 'float' that differs from the metadata field type 'string' returned by the 'decimal' DBAL type.
  • The field 'App\Entity\OrderItem#unitPriceWithVat' has the property type 'float' that differs from the metadata field type 'string' returned by the 'decimal' DBAL type.
  • The field 'App\Entity\OrderItem#totalPriceNet' has the property type 'float' that differs from the metadata field type 'string' returned by the 'decimal' DBAL type.
  • The field 'App\Entity\OrderItem#totalPriceGross' has the property type 'float' that differs from the metadata field type 'string' returned by the 'decimal' DBAL type.