Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
escapeColumnKeys example
$mappings
->
addInsert
(
$definition
->
getEntityName
(
)
,
$command
->
getPayload
(
)
)
;
continue
;
}
if
(
$command
instanceof UpdateCommand
)
{
$executeInserts
(
)
;
RetryableQuery::
retryable
(
$this
->connection,
function
D
)
use
(
$command
,
$table
)
: void
{
$this
->connection->
update
(
EntityDefinitionQueryHelper::
escape
(
$table
)
,
$this
->
escapeColumnKeys
(
$command
->
getPayload
(
)
)
,
$command
->
getPrimaryKey
(
)
)
;
}
)
;
continue
;
}
if
(
$command
instanceof InsertCommand
)
{
$inserts
->
addInsert
(
$definition
->
getEntityName
(
)
,
$command
->
getPayload
(
)
)
;
continue
;
}