POST https://test.crm.seniorstairlifts.co.uk/api/sales-leads

Query Metrics

22 Database Queries
14 Different statements
46.49 ms Query time
2 Invalid entities
5 Managed entities

Queries

Group similar statements

# Time Info
1 0.37 ms
SELECT t0.id AS id_1, t0.api_key AS api_key_2, t0.roles AS roles_3, t0.status AS status_4, t0.name AS name_5, t0.email_address_for_confirmation AS email_address_for_confirmation_6, t0.show_in_reports AS show_in_reports_7 FROM api_user t0 WHERE t0.api_key = ? LIMIT 1
Parameters:
[
  "c69384e217208f1c3e4dc7b4233bddfe"
]
2 0.35 ms
SELECT t0.id AS id_1, t0.api_key AS api_key_2, t0.roles AS roles_3, t0.status AS status_4, t0.name AS name_5, t0.email_address_for_confirmation AS email_address_for_confirmation_6, t0.show_in_reports AS show_in_reports_7 FROM api_user t0 WHERE t0.api_key = ? LIMIT 1
Parameters:
[
  "c69384e217208f1c3e4dc7b4233bddfe"
]
3 0.19 ms
"START TRANSACTION"
Parameters:
[]
4 0.36 ms
INSERT INTO api_log (subject, reference, payload, route, sender, response_code, created_at_timestamp, updated_at_timestamp) VALUES (?, ?, ?, ?, ?, ?, ?, ?)
Parameters:
[
  null
  null
  "{"fullName":"Dupe Check","source":"partner_portal","contact":{"telephone":"07700160211"},"address":{"lines":null,"town":"Leeds","postcode":"LS1 1AA"},"metadata":{"origin":"partner-portal","submitted_by_portal_user":"manager@portal.test","submitted_by_portal_user_id":"ca7fac99-b21d-4459-8e50-b07fd8bc9e44","partner_name":"Northern Mobility Ltd","partner_id":"c677706a-4f66-4277-8a8b-bada80b9b241","store_id":"86628f28-ffb4-4ed3-9c1c-469cb102f2be","store_name":"Manchester Central"}}"
  "/api/sales-leads"
  "Partner Portal"
  null
  1786617131
  null
]
5 4.37 ms
"COMMIT"
Parameters:
[]
6 24.40 ms
SELECT p0_.id AS id_0, p0_.requirements AS requirements_1, p0_.source AS source_2, p0_.stairlift_condition AS stairlift_condition_3, p0_.staircase AS staircase_4, p0_.external_id AS external_id_5, p0_.external_distribution_id AS external_distribution_id_6, p0_.lead_type AS lead_type_7, p0_.extended_warranty AS extended_warranty_8, p0_.other_reason AS other_reason_9, p0_.third_dead_reason AS third_dead_reason_10, p0_.sub_dead_reason AS sub_dead_reason_11, p0_.status AS status_12, p0_.created_at_timestamp AS created_at_timestamp_13, p0_.updated_at_timestamp AS updated_at_timestamp_14, p0_.metadata AS metadata_15, p0_.customer_id AS customer_id_16, p0_.brand_id AS brand_id_17, p0_.api_user_id AS api_user_id_18, p0_.assigned_user_id AS assigned_user_id_19 FROM project p0_ LEFT JOIN customer c1_ ON p0_.customer_id = c1_.id WHERE c1_.contact_number LIKE ? AND p0_.created_at_timestamp >= ? AND (p0_.status = ? OR p0_.status = ?) ORDER BY p0_.created_at_timestamp DESC LIMIT 1
Parameters:
[
  "%07700160211"
  1783987200
  "unassigned"
  "lead"
]
7 0.44 ms
SELECT t0.id AS id_1, t0.api_key AS api_key_2, t0.roles AS roles_3, t0.status AS status_4, t0.name AS name_5, t0.email_address_for_confirmation AS email_address_for_confirmation_6, t0.show_in_reports AS show_in_reports_7 FROM api_user t0 WHERE t0.api_key = ? LIMIT 1
Parameters:
[
  "c69384e217208f1c3e4dc7b4233bddfe"
]
8 0.21 ms
"START TRANSACTION"
Parameters:
[]
9 0.42 ms
INSERT INTO customer (name, additional_name, alternative_contact_number, stripe_id, address_lines, address_town, address_postcode, address_county, address_country, created_at_timestamp, updated_at_timestamp, contact_number, e164_contact_number, email_address, latitude, longitude, display_id, created_by_user_id, last_updated_by_user_id, xero_guid_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Parameters:
[
  "Dupe Check"
  null
  null
  null
  null
  "Leeds"
  "LS1 1AA"
  null
  null
  1786617132
  null
  "07700160211"
  null
  null
  null
  null
  null
  null
  null
  null
]
10 0.38 ms
INSERT INTO project (requirements, source, stairlift_condition, staircase, external_id, external_distribution_id, lead_type, extended_warranty, other_reason, third_dead_reason, sub_dead_reason, status, created_at_timestamp, updated_at_timestamp, metadata, customer_id, brand_id, api_user_id, assigned_user_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Parameters:
[
  "unknown"
  "partner_portal"
  "unknown"
  "unknown"
  null
  null
  null
  null
  null
  null
  null
  "unassigned"
  1786617132
  null
  "{"origin":"partner-portal","submitted_by_portal_user":"manager@portal.test","submitted_by_portal_user_id":"ca7fac99-b21d-4459-8e50-b07fd8bc9e44","partner_name":"Northern Mobility Ltd","partner_id":"c677706a-4f66-4277-8a8b-bada80b9b241","store_id":"86628f28-ffb4-4ed3-9c1c-469cb102f2be","store_name":"Manchester Central"}"
  24043
  null
  20
  null
]
11 0.30 ms
INSERT INTO project_note (is_pinned, anniversary_category, is_deleted, deleted_at_timestamp, body, category, completed_at_timestamp, created_at_timestamp, updated_at_timestamp, due_at_timestamp, project_id, deleted_by_user_id, assigned_user_id, created_by_user_id, last_updated_by_user_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Parameters:
[
  0
  null
  0
  null
  "Give this person a callback!"
  null
  null
  1786617132
  null
  1786579200
  19918
  null
  null
  null
  null
]
12 0.14 ms
SAVEPOINT DOCTRINE_2
Parameters:
[]
13 0.41 ms
UPDATE customer SET display_id = ?, updated_at_timestamp = ? WHERE id = ?
Parameters:
[
  "C-24043"
  1786617132
  24043
]
14 0.11 ms
RELEASE SAVEPOINT DOCTRINE_2
Parameters:
[]
15 4.37 ms
"COMMIT"
Parameters:
[]
16 0.20 ms
"START TRANSACTION"
Parameters:
[]
17 0.57 ms
UPDATE api_log SET subject = ?, reference = ?, response_code = ?, updated_at_timestamp = ? WHERE id = ?
Parameters:
[
  "App\Entity\Project"
  19918
  201
  1786617132
  12679
]
18 0.36 ms
UPDATE customer SET latitude = ?, longitude = ? WHERE id = ?
Parameters:
[
  21.0110559
  105.7927458
  24043
]
19 4.62 ms
"COMMIT"
Parameters:
[]
20 0.17 ms
"START TRANSACTION"
Parameters:
[]
21 0.33 ms
INSERT INTO messenger_messages (body, headers, queue_name, created_at, available_at) VALUES(?, ?, ?, ?, ?)
Parameters:
[
  "O:36:\"Symfony\\Component\\Messenger\\Envelope\":2:{s:44:\"\0Symfony\\Component\\Messenger\\Envelope\0stamps\";a:1:{s:46:\"Symfony\\Component\\Messenger\\Stamp\\BusNameStamp\";a:1:{i:0;O:46:\"Symfony\\Component\\Messenger\\Stamp\\BusNameStamp\":1:{s:55:\"\0Symfony\\Component\\Messenger\\Stamp\\BusNameStamp\0busName\";s:21:\"messenger.bus.default\";}}}s:45:\"\0Symfony\\Component\\Messenger\\Envelope\0message\";O:50:\"App\\Message\\Email\\SuccessfulApiRequestEmailMessage\":3:{s:59:\"\0App\\Message\\Email\\SuccessfulApiRequestEmailMessage\0toEmail\";s:36:\"partnerportal@seniorstairlifts.co.uk\";s:64:\"\0App\\Message\\Email\\SuccessfulApiRequestEmailMessage\0customerName\";s:10:\"Dupe Check\";s:61:\"\0App\\Message\\Email\\SuccessfulApiRequestEmailMessage\0timestamp\";i:1786617132;}}"
  "[]"
  "default"
  "2026-08-13 10:32:12"
  "2026-08-13 10:32:12"
]
22 3.42 ms
"COMMIT"
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\ApiUser 1
App\Entity\ApiLog 1
App\Entity\Customer 1
App\Entity\Project 1
App\Entity\ProjectNote 1

Entities Mapping

Class Mapping errors
App\Entity\ApiUser No errors.
App\Entity\ApiLog No errors.
App\Entity\Project No errors.
App\Entity\Customer
  • The field 'App\Entity\Customer#latitude' has the property type 'float' that differs from the metadata field type 'string' returned by the 'decimal' DBAL type.
  • The field 'App\Entity\Customer#longitude' has the property type 'float' that differs from the metadata field type 'string' returned by the 'decimal' DBAL type.
App\Entity\Brand No errors.
App\Entity\User No errors.
App\Entity\ProjectNote No errors.
App\Entity\Job No errors.
App\Entity\Quote
  • The association App\Entity\Quote#quotedBy refers to the inverse side field App\Entity\User#quotes which does not exist.
  • The association App\Entity\Quote#soldBy refers to the inverse side field App\Entity\User#soldQuotes which does not exist.
App\Entity\PurchaseOrder No errors.
App\Entity\ProjectFile No errors.
App\Entity\Invoice No errors.
App\Entity\PhoneCall No errors.
App\Entity\Warranty No errors.
App\Entity\Stock\Item No errors.
App\Entity\Complaint No errors.
App\Entity\Xero\XeroGuid No errors.