Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
getReadLockSQL example
if
(
$orderBy
)
{
$orderBySql
=
$this
->
getOrderBySQL
(
$orderBy
,
$this
->
getSQLTableAlias
(
$this
->class->name
)
)
;
}
$conditionSql
=
$criteria
instanceof Criteria
?
$this
->
getSelectConditionCriteriaSQL
(
$criteria
)
:
$this
->
getSelectConditionSQL
(
$criteria
,
$assoc
)
;
switch
(
$lockMode
)
{
case
LockMode::PESSIMISTIC_READ:
$lockSql
= ' ' .
$this
->platform->
getReadLockSQL
(
)
;
break
;
case
LockMode::PESSIMISTIC_WRITE:
$lockSql
= ' ' .
$this
->platform->
getWriteLockSQL
(
)
;
break
;
}
$columnList
=
$this
->
getSelectColumnsSQL
(
)
;
$tableAlias
=
$this
->
getSQLTableAlias
(
$this
->class->name
)
;
$filterSql
=
$this
->
generateFilterConditionSQL
(
$this
->class,
$tableAlias
)
;
$tableName
=
$this
->quoteStrategy->
getTableName
(
$this
->class,
$this
->platform
)
;