eZ\Publish\Core\FieldType\BinaryFile\BinaryFileStorage\Gateway\LegacyStorage::setFetchColumns PHP Method

setFetchColumns() protected method

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.
protected setFetchColumns ( eZ\Publish\Core\Persistence\Database\SelectQuery $selectQuery, integer $fieldId, integer $versionNo )
$selectQuery eZ\Publish\Core\Persistence\Database\SelectQuery
$fieldId integer
$versionNo integer
    protected function setFetchColumns(SelectQuery $selectQuery, $fieldId, $versionNo)
    {
        $connection = $this->getConnection();
        parent::setFetchColumns($selectQuery, $fieldId, $versionNo);
        $selectQuery->select($connection->quoteColumn('download_count'));
    }