<?php

namespace KupShop\SellerBundle\Admin\lists;

use Doctrine\DBAL\Query\QueryBuilder;
use KupShop\I18nBundle\Admin\lists\TranslateList;
use KupShop\KupShopBundle\Util\Compat\ServiceContainer;
use KupShop\SellerBundle\Translations\SellersTranslation;

class TranslateSellersList extends TranslateList
{
    protected $template = 'list/translateSellers.tpl';

    protected $listType = 'translateSellers';

    public function __construct()
    {
        parent::__construct();
        $this->translation = ServiceContainer::getService(SellersTranslation::class);
    }

    protected function createQueryBuilder(): QueryBuilder
    {
        $qb = parent::createQueryBuilder();
        $qb->addSelect('NULL as position');

        return $qb;
    }
}

return TranslateSellersList::class;
