$select = 'SELECT ' .
$columnList;
$from = ' FROM ' .
$tableName . ' ' .
$tableAlias;
$join =
$this->currentPersisterContext->selectJoinSql .
$joinSql;
$where =
($conditionSql ? ' WHERE ' .
$conditionSql : ''
);
$lock =
$this->platform->
appendLockHint($from,
$lockMode ?? LockMode::NONE
);
$query =
$select .
$lock .
$join .
$where .
$orderBySql;
return $this->platform->
modifyLimitQuery($query,
$limit,
$offset ?? 0
) .
$lockSql;
} /**
* {@inheritDoc}
*/
public function getCountSQL($criteria =
[]) { $tableName =
$this->quoteStrategy->
getTableName($this->class,
$this->platform
);
$tableAlias =
$this->
getSQLTableAlias($this->class->name
);
$conditionSql =
$criteria instanceof Criteria
?