<?php //Sylius__Component__Core__Model__ChannelPricing__CLASSMETADATA__

return [PHP_INT_MAX, static fn () => \Symfony\Component\VarExporter\Internal\Hydrator::hydrate(
    $o = [
        clone (($p = &\Symfony\Component\VarExporter\Internal\Registry::$prototypes)['Doctrine\\ORM\\Mapping\\ClassMetadata'] ?? \Symfony\Component\VarExporter\Internal\Registry::p('Doctrine\\ORM\\Mapping\\ClassMetadata')),
        clone ($p['Doctrine\\ORM\\Id\\IdentityGenerator'] ?? \Symfony\Component\VarExporter\Internal\Registry::p('Doctrine\\ORM\\Id\\IdentityGenerator')),
    ],
    null,
    [
        'stdClass' => [
            'name' => [
                'Sylius\\Component\\Core\\Model\\ChannelPricing',
            ],
            'namespace' => [
                'Sylius\\Component\\Core\\Model',
            ],
            'rootEntityName' => [
                'Sylius\\Component\\Core\\Model\\ChannelPricing',
            ],
            'isMappedSuperclass' => [
                true,
            ],
            'identifier' => [
                [
                    'id',
                ],
            ],
            'generatorType' => [
                4,
            ],
            'fieldMappings' => [
                [
                    'price' => [
                        'fieldName' => 'price',
                        'type' => 'integer',
                        'columnName' => 'price',
                        'nullable' => true,
                    ],
                    'originalPrice' => [
                        'fieldName' => 'originalPrice',
                        'type' => 'integer',
                        'columnName' => 'original_price',
                        'nullable' => true,
                    ],
                    'minimumPrice' => [
                        'fieldName' => 'minimumPrice',
                        'type' => 'integer',
                        'columnName' => 'minimum_price',
                        'nullable' => true,
                        'options' => [
                            'default' => '0',
                        ],
                    ],
                    'lowestPriceBeforeDiscount' => [
                        'fieldName' => 'lowestPriceBeforeDiscount',
                        'type' => 'integer',
                        'columnName' => 'lowest_price_before_discount',
                        'nullable' => true,
                    ],
                    'channelCode' => [
                        'fieldName' => 'channelCode',
                        'type' => 'string',
                        'columnName' => 'channel_code',
                    ],
                    'id' => [
                        'fieldName' => 'id',
                        'type' => 'integer',
                        'columnName' => 'id',
                        'id' => true,
                    ],
                ],
            ],
            'fieldNames' => [
                [
                    'price' => 'price',
                    'original_price' => 'originalPrice',
                    'minimum_price' => 'minimumPrice',
                    'lowest_price_before_discount' => 'lowestPriceBeforeDiscount',
                    'channel_code' => 'channelCode',
                    'id' => 'id',
                ],
            ],
            'columnNames' => [
                [
                    'price' => 'price',
                    'originalPrice' => 'original_price',
                    'minimumPrice' => 'minimum_price',
                    'lowestPriceBeforeDiscount' => 'lowest_price_before_discount',
                    'channelCode' => 'channel_code',
                    'id' => 'id',
                ],
            ],
            'table' => [
                [
                    'name' => 'sylius_channel_pricing',
                    'uniqueConstraints' => [
                        'product_variant_channel_idx' => [
                            'columns' => [
                                'product_variant_id',
                                'channel_code',
                            ],
                        ],
                    ],
                ],
            ],
            'associationMappings' => [
                [
                    'productVariant' => [
                        'fieldName' => 'productVariant',
                        'targetEntity' => 'App\\Entity\\Product\\ProductVariant',
                        'inversedBy' => 'channelPricings',
                        'joinColumns' => [
                            [
                                'name' => 'product_variant_id',
                                'referencedColumnName' => 'id',
                                'nullable' => false,
                                'onDelete' => 'CASCADE',
                            ],
                        ],
                        'cascade' => [
                            'persist',
                        ],
                        'type' => 2,
                        'mappedBy' => null,
                        'isOwningSide' => true,
                        'sourceEntity' => 'Sylius\\Component\\Core\\Model\\ChannelPricing',
                        'fetch' => 2,
                        'isCascadeRemove' => false,
                        'isCascadePersist' => true,
                        'isCascadeRefresh' => false,
                        'isCascadeMerge' => false,
                        'isCascadeDetach' => false,
                        'sourceToTargetKeyColumns' => [
                            'product_variant_id' => 'id',
                        ],
                        'joinColumnFieldNames' => [
                            'product_variant_id' => 'product_variant_id',
                        ],
                        'targetToSourceKeyColumns' => [
                            'id' => 'product_variant_id',
                        ],
                        'orphanRemoval' => false,
                    ],
                ],
            ],
            'idGenerator' => [
                $o[1],
            ],
        ],
    ],
    $o[0],
    []
)];
