/**
* Set columns to be fetched from the database
*
* This method is intended to be overwritten by derived classes in order to
* add additional columns to be fetched from the database. Please do not
* forget to call the parent when overwriting this method.
*
* @param eZ\Publish\Core\Persistence\Database\SelectQuery $selectQuery
* @param int $fieldId
* @param int $versionNo
*
* @return void
*/
protected function setFetchColumns(SelectQuery $selectQuery, $fieldId, $versionNo)
{
$connection = $this->getConnection();
parent::setFetchColumns($selectQuery, $fieldId, $versionNo);
$selectQuery->select($connection->quoteColumn('download_count'));
}