new ManyToManyAssociationField('countries', CountryDefinition::
class, SalesChannelCountryDefinition::
class, 'sales_channel_id', 'country_id'
),
new ManyToManyAssociationField('paymentMethods', PaymentMethodDefinition::
class, SalesChannelPaymentMethodDefinition::
class, 'sales_channel_id', 'payment_method_id'
),
new ManyToManyIdField('payment_method_ids', 'paymentMethodIds', 'paymentMethods'
),
new ManyToManyAssociationField('shippingMethods', ShippingMethodDefinition::
class, SalesChannelShippingMethodDefinition::
class, 'sales_channel_id', 'shipping_method_id'
),
new ManyToOneAssociationField('type', 'type_id', SalesChannelTypeDefinition::
class, 'id', false
),
(new ManyToOneAssociationField('language', 'language_id', LanguageDefinition::
class, 'id', false
))->
addFlags(new ApiAware()),
new ManyToOneAssociationField('customerGroup', 'customer_group_id', CustomerGroupDefinition::
class, 'id', false
),
(new ManyToOneAssociationField('currency', 'currency_id', CurrencyDefinition::
class, 'id', false
))->
addFlags(new ApiAware()),
(new ManyToOneAssociationField('paymentMethod', 'payment_method_id', PaymentMethodDefinition::
class, 'id', false
))->
addFlags(new ApiAware()),
(new ManyToOneAssociationField('shippingMethod', 'shipping_method_id', ShippingMethodDefinition::
class, 'id', false
))->
addFlags(new ApiAware()),
(new ManyToOneAssociationField('country', 'country_id', CountryDefinition::
class, 'id', false
))->
addFlags(new ApiAware()),
new OneToManyAssociationField('orders', OrderDefinition::
class, 'sales_channel_id', 'id'
),
new OneToManyAssociationField('customers', CustomerDefinition::
class, 'sales_channel_id', 'id'
),
new FkField('home_cms_page_id', 'homeCmsPageId', CmsPageDefinition::
class),
(new ReferenceVersionField(CmsPageDefinition::
class, 'home_cms_page_version_id'
))->
addFlags(new Required()),
new ManyToOneAssociationField('homeCmsPage', 'home_cms_page_id', CmsPageDefinition::
class, 'id', false
),
new TranslatedField('homeSlotConfig'
),
new TranslatedField('homeEnabled'
),
new TranslatedField('homeName'
),
new TranslatedField('homeMetaTitle'
),
new TranslatedField('homeMetaDescription'
),