$attributes[$formattedColumn] =
['ISTRUE', 'ISFALSE', 'ISNULL'
];
break;
case 'date':
$attributes[$formattedColumn] =
['>', '>=', '<', '<=', '=', 'ISNULL'
];
break;
case 'datetime':
$attributes[$formattedColumn] =
['>', '>=', '<', '<=', '=', 'ISNULL'
];
break;
default:
// Allow custom types. If not event handles the unknown type
// an exception will be thrown
if ($event =
$this->
getEventManager()->
notifyUntil( 'SwagMultiEdit_Product_Grammar_generateAttributesFromColumns_Type_' .
ucfirst(strtolower($type)),
[ 'subject' =>
$this,
'type' =>
$type,
'mapping' =>
$mapping,
] )) { $attributes[$formattedColumn] =
$event->
getReturn();
} else { throw new RuntimeException(sprintf('Column with type %s was not configured, yet',
$type));
} }