25 parent::__construct(
$resource, $modulePrefix);
60 private $_groupableTypes = [
'varchar',
'text',
'decimal',
'datetime',
'int'];
70 switch ($columnType) {
76 $columnType =
'smallint';
82 return array_search($columnType, $this->_ddlColumnTypes);
109 foreach ($selects as $dataType => $selectGroup) {
110 if (in_array($dataType, $this->_groupableTypes)) {
111 $mainGroup[
'all'][] = $selectGroup;
115 $mainGroup[$dataType] = $selectGroup;
118 if (array_key_exists(
'all', $mainGroup)) {
120 $mainGroup[
'all'] = array_merge(...$mainGroup[
'all']);
123 return array_values($mainGroup);
getDdlTypeByColumnType($columnType)
__construct(\Magento\Framework\App\ResourceConnection $resource, $modulePrefix='Magento_Eav')
getLoadAttributesSelectGroups($selects)