<?php

use KupShop\AdminBundle\AdminList\BaseList;

/**
 * Created by PhpStorm.
 * User: hanz
 * Date: 12.6.14
 * Time: 14:46.
 */
class ProductsVarLabelsList extends BaseList
{
    protected $showMassEdit = true;
    protected $tableName = 'products_variations_choices_labels';
    protected ?string $tableAlias = 'pvcl';

    protected $tableDef = [
        'id' => 'pvcl.id',
        'fields' => [
            'label' => ['translate' => true, 'field' => 'pvcl.label', 'spec' => 'pvcl.label', 'fieldType' => BaseList::TYPE_STRING],
            'ID' => ['field' => 'id', 'wpjAdmin' => true],
        ],
    ];

    public function getQuery()
    {
        $qb = sqlQueryBuilder()->select('id')->from('products_variations_choices_labels', 'pvcl');

        return $qb;
    }
}
