9 use Magento\Eav\Model\ResourceModel\Entity\Attribute\Group\CollectionFactory;
36 private static $connectionName =
'checkout';
49 CollectionFactory $attrGroupCollectionFactory,
54 parent::__construct(
$setup, $context,
$cache, $attrGroupCollectionFactory);
64 'quote_item' =>
'quote_item',
65 'quote_address' =>
'quote_address',
66 'quote_address_item' =>
'quote_address_item',
67 'quote_address_rate' =>
'quote_shipping_rate',
68 'quote_payment' =>
'quote_payment',
82 array_map(
'strtoupper', $tablesList)
147 switch (
$data[
'type']) {
171 if (
$type !==
null) {
173 $data[
'length'] = $length;
176 $data[
'nullable'] = isset(
$data[
'required']) ? !
$data[
'required'] :
true;
177 $data[
'comment'] = isset(
$data[
'comment']) ?
$data[
'comment'] : ucwords(str_replace(
'_',
' ',
$code));
206 return $this->
getSetup()->getConnection(self::$connectionName);
217 return $this->
getSetup()->getTable(
$table, self::$connectionName);
_getAttributeColumnDefinition($code, $data)
__construct(ModuleDataSetupInterface $setup, Context $context, CacheInterface $cache, CollectionFactory $attrGroupCollectionFactory, ScopeConfigInterface $config)
addAttribute($entityTypeId, $code, array $attr)
_addFlatAttribute($table, $attribute, $attr)