"SELECT t0.id AS id_1, t0.username AS username_2, t0.password AS password_3, t0.created_at AS created_at_4, t0.roles AS roles_5, t0.email AS email_6, t0.is_active AS is_active_7, t0.person_id AS person_id_8 FROM user t0 WHERE t0.id = ?"
(parameters:
[1 => 89]
, types:
[1 => 1]
)
doctrine
[
"sql" => "SELECT t0.id AS id_1, t0.username AS username_2, t0.password AS password_3, t0.created_at AS created_at_4, t0.roles AS roles_5, t0.email AS email_6, t0.is_active AS is_active_7, t0.person_id AS person_id_8 FROM user t0 WHERE t0.id = ?"
"params" => [1 => 89]
"types" => [1 => 1]
]
User Deprecated: Since symfony/framework-bundle 5.4: Method "Symfony\Bundle\FrameworkBundle\Controller\AbstractController::getDoctrine()" is deprecated, inject an instance of ManagerRegistry in your controller instead.
"SELECT t0.id AS id_1, t0.account_date AS account_date_2, t0.is_closed AS is_closed_3, t0.closing_date AS closing_date_4, t0.is_banked AS is_banked_5, t0.created_at AS created_at_6, t0.closed_by AS closed_by_7, t0.created_by AS created_by_8, t0.station_id AS station_id_9 FROM station_daily_account t0 WHERE t0.id = ? LIMIT 1"
(parameters:
[1 => "20299"
]
, types:
[1 => 1]
)
doctrine
[
"sql" => "SELECT t0.id AS id_1, t0.account_date AS account_date_2, t0.is_closed AS is_closed_3, t0.closing_date AS closing_date_4, t0.is_banked AS is_banked_5, t0.created_at AS created_at_6, t0.closed_by AS closed_by_7, t0.created_by AS created_by_8, t0.station_id AS station_id_9 FROM station_daily_account t0 WHERE t0.id = ? LIMIT 1"
"params" => [1 => "20299"
]
"types" => [1 => 1]
]
debug
Executing statement:
"""
select a.id,a.account_date, a.station_id, d.station_name, sum(c.amount) as amount, count(*) as transactions, \n (SELECT sum(inner_a.amount) FROM station_expense inner_a \n JOIN daily_account inner_b ON inner_b.id = inner_a.daily_account_id \n JOIN station_daily_account inner_c ON inner_c.id = inner_b.station_daily_account WHERE inner_c.id =a.id ) as expenses\n\n FROM station_daily_account a \n JOIN daily_account b ON b.station_daily_account = a.id \n JOIN transaction c ON c.daily_account_id = b.id \n JOIN station d ON a.station_id = d.id WHERE a.id =:station_daily_account and c.is_cancelled = false
"""
(parameters:
[
"station_daily_account" => 20299]
, types:
[]
)
doctrine
[
"sql" => """
select a.id,a.account_date, a.station_id, d.station_name, sum(c.amount) as amount, count(*) as transactions, \n (SELECT sum(inner_a.amount) FROM station_expense inner_a \n JOIN daily_account inner_b ON inner_b.id = inner_a.daily_account_id \n JOIN station_daily_account inner_c ON inner_c.id = inner_b.station_daily_account WHERE inner_c.id =a.id ) as expenses\n\n FROM station_daily_account a \n JOIN daily_account b ON b.station_daily_account = a.id \n JOIN transaction c ON c.daily_account_id = b.id \n JOIN station d ON a.station_id = d.id WHERE a.id =:station_daily_account and c.is_cancelled = false
"""
"params" => [
"station_daily_account" => 20299]
"types" => []
]
debug
Executing statement:
"""
SELECT * FROM station_expense a\n JOIN expense_type b ON a.expense_type_id = b.id\n WHERE daily_account_id in (select bb.id FROM station_daily_account aa \n JOIN daily_account bb ON bb.station_daily_account = a.id \n WHERE aa.id = :station_daily_account)
"""
(parameters:
[
"station_daily_account" => 20299]
, types:
[]
)
doctrine
[
"sql" => """
SELECT * FROM station_expense a\n JOIN expense_type b ON a.expense_type_id = b.id\n WHERE daily_account_id in (select bb.id FROM station_daily_account aa \n JOIN daily_account bb ON bb.station_daily_account = a.id \n WHERE aa.id = :station_daily_account)
"""
"params" => [
"station_daily_account" => 20299]
"types" => []
]