From 1bdd5496a3baaae02dc58c5422af78dafe9b8593 Mon Sep 17 00:00:00 2001 From: Mateusz Zalewski Date: Tue, 29 Nov 2022 15:55:48 +0100 Subject: [PATCH] Revert "[Maintenance] Annotation changed to PHP Attributes in the Entity classes" --- config/packages/doctrine.yaml | 2 +- src/Entity/Addressing/Address.php | 6 ++++-- src/Entity/Addressing/Country.php | 6 ++++-- src/Entity/Addressing/Province.php | 6 ++++-- src/Entity/Addressing/Zone.php | 6 ++++-- src/Entity/Addressing/ZoneMember.php | 6 ++++-- src/Entity/Channel/Channel.php | 6 ++++-- src/Entity/Channel/ChannelPricing.php | 6 ++++-- src/Entity/Currency/Currency.php | 6 ++++-- src/Entity/Currency/ExchangeRate.php | 6 ++++-- src/Entity/Customer/Customer.php | 6 ++++-- src/Entity/Customer/CustomerGroup.php | 6 ++++-- src/Entity/Locale/Locale.php | 6 ++++-- src/Entity/Order/Adjustment.php | 6 ++++-- src/Entity/Order/Order.php | 6 ++++-- src/Entity/Order/OrderItem.php | 6 ++++-- src/Entity/Order/OrderItemUnit.php | 6 ++++-- src/Entity/Order/OrderSequence.php | 6 ++++-- src/Entity/Payment/GatewayConfig.php | 6 ++++-- src/Entity/Payment/Payment.php | 6 ++++-- src/Entity/Payment/PaymentMethod.php | 6 ++++-- src/Entity/Payment/PaymentMethodTranslation.php | 6 ++++-- src/Entity/Payment/PaymentSecurityToken.php | 6 ++++-- src/Entity/Product/Product.php | 6 ++++-- src/Entity/Product/ProductAssociation.php | 6 ++++-- src/Entity/Product/ProductAssociationType.php | 6 ++++-- src/Entity/Product/ProductAssociationTypeTranslation.php | 6 ++++-- src/Entity/Product/ProductAttribute.php | 6 ++++-- src/Entity/Product/ProductAttributeTranslation.php | 6 ++++-- src/Entity/Product/ProductAttributeValue.php | 6 ++++-- src/Entity/Product/ProductImage.php | 6 ++++-- src/Entity/Product/ProductOption.php | 6 ++++-- src/Entity/Product/ProductOptionTranslation.php | 6 ++++-- src/Entity/Product/ProductOptionValue.php | 6 ++++-- src/Entity/Product/ProductOptionValueTranslation.php | 6 ++++-- src/Entity/Product/ProductReview.php | 6 ++++-- src/Entity/Product/ProductTaxon.php | 6 ++++-- src/Entity/Product/ProductTranslation.php | 6 ++++-- src/Entity/Product/ProductVariant.php | 6 ++++-- src/Entity/Product/ProductVariantTranslation.php | 6 ++++-- src/Entity/Promotion/CatalogPromotion.php | 6 ++++-- src/Entity/Promotion/CatalogPromotionAction.php | 6 ++++-- src/Entity/Promotion/CatalogPromotionScope.php | 6 ++++-- src/Entity/Promotion/Promotion.php | 6 ++++-- src/Entity/Promotion/PromotionAction.php | 6 ++++-- src/Entity/Promotion/PromotionCoupon.php | 6 ++++-- src/Entity/Promotion/PromotionRule.php | 6 ++++-- src/Entity/Shipping/Shipment.php | 6 ++++-- src/Entity/Shipping/ShippingCategory.php | 6 ++++-- src/Entity/Shipping/ShippingMethod.php | 6 ++++-- src/Entity/Shipping/ShippingMethodTranslation.php | 6 ++++-- src/Entity/Taxation/TaxCategory.php | 6 ++++-- src/Entity/Taxation/TaxRate.php | 6 ++++-- src/Entity/Taxonomy/Taxon.php | 6 ++++-- src/Entity/Taxonomy/TaxonImage.php | 6 ++++-- src/Entity/Taxonomy/TaxonTranslation.php | 6 ++++-- src/Entity/User/AdminUser.php | 6 ++++-- src/Entity/User/ShopUser.php | 6 ++++-- src/Entity/User/UserOAuth.php | 6 ++++-- 59 files changed, 233 insertions(+), 117 deletions(-) diff --git a/config/packages/doctrine.yaml b/config/packages/doctrine.yaml index 3d869f9d12..77ab2b1f25 100644 --- a/config/packages/doctrine.yaml +++ b/config/packages/doctrine.yaml @@ -20,7 +20,7 @@ doctrine: mappings: App: is_bundle: false - type: attribute + type: annotation dir: '%kernel.project_dir%/src/Entity' prefix: 'App\Entity' alias: App diff --git a/src/Entity/Addressing/Address.php b/src/Entity/Addressing/Address.php index d9c5f7ccb5..b6bd07d7ae 100644 --- a/src/Entity/Addressing/Address.php +++ b/src/Entity/Addressing/Address.php @@ -7,8 +7,10 @@ use Doctrine\ORM\Mapping as ORM; use Sylius\Component\Core\Model\Address as BaseAddress; -#[ORM\Entity] -#[ORM\Table(name: 'sylius_address')] +/** + * @ORM\Entity + * @ORM\Table(name="sylius_address") + */ class Address extends BaseAddress { } diff --git a/src/Entity/Addressing/Country.php b/src/Entity/Addressing/Country.php index 0f6a276c1a..87dcb07ad5 100644 --- a/src/Entity/Addressing/Country.php +++ b/src/Entity/Addressing/Country.php @@ -7,8 +7,10 @@ use Doctrine\ORM\Mapping as ORM; use Sylius\Component\Addressing\Model\Country as BaseCountry; -#[ORM\Entity] -#[ORM\Table(name: 'sylius_country')] +/** + * @ORM\Entity + * @ORM\Table(name="sylius_country") + */ class Country extends BaseCountry { } diff --git a/src/Entity/Addressing/Province.php b/src/Entity/Addressing/Province.php index da9a9a4f0b..72974307fa 100644 --- a/src/Entity/Addressing/Province.php +++ b/src/Entity/Addressing/Province.php @@ -7,8 +7,10 @@ use Doctrine\ORM\Mapping as ORM; use Sylius\Component\Addressing\Model\Province as BaseProvince; -#[ORM\Entity] -#[ORM\Table(name: 'sylius_province')] +/** + * @ORM\Entity + * @ORM\Table(name="sylius_province") + */ class Province extends BaseProvince { } diff --git a/src/Entity/Addressing/Zone.php b/src/Entity/Addressing/Zone.php index aeb84414c2..1d59932872 100644 --- a/src/Entity/Addressing/Zone.php +++ b/src/Entity/Addressing/Zone.php @@ -7,8 +7,10 @@ use Doctrine\ORM\Mapping as ORM; use Sylius\Component\Addressing\Model\Zone as BaseZone; -#[ORM\Entity] -#[ORM\Table(name: 'sylius_zone')] +/** + * @ORM\Entity + * @ORM\Table(name="sylius_zone") + */ class Zone extends BaseZone { } diff --git a/src/Entity/Addressing/ZoneMember.php b/src/Entity/Addressing/ZoneMember.php index d2525ad0df..871c3587a0 100644 --- a/src/Entity/Addressing/ZoneMember.php +++ b/src/Entity/Addressing/ZoneMember.php @@ -7,8 +7,10 @@ use Doctrine\ORM\Mapping as ORM; use Sylius\Component\Addressing\Model\ZoneMember as BaseZoneMember; -#[ORM\Entity] -#[ORM\Table(name: 'sylius_zone_member')] +/** + * @ORM\Entity + * @ORM\Table(name="sylius_zone_member") + */ class ZoneMember extends BaseZoneMember { } diff --git a/src/Entity/Channel/Channel.php b/src/Entity/Channel/Channel.php index f62db4219e..41602728c0 100644 --- a/src/Entity/Channel/Channel.php +++ b/src/Entity/Channel/Channel.php @@ -7,8 +7,10 @@ use Doctrine\ORM\Mapping as ORM; use Sylius\Component\Core\Model\Channel as BaseChannel; -#[ORM\Entity] -#[ORM\Table(name: 'sylius_channel')] +/** + * @ORM\Entity + * @ORM\Table(name="sylius_channel") + */ class Channel extends BaseChannel { } diff --git a/src/Entity/Channel/ChannelPricing.php b/src/Entity/Channel/ChannelPricing.php index 855cab81f4..8024ca3d63 100644 --- a/src/Entity/Channel/ChannelPricing.php +++ b/src/Entity/Channel/ChannelPricing.php @@ -7,8 +7,10 @@ use Doctrine\ORM\Mapping as ORM; use Sylius\Component\Core\Model\ChannelPricing as BaseChannelPricing; -#[ORM\Entity] -#[ORM\Table(name: 'sylius_channel_pricing')] +/** + * @ORM\Entity + * @ORM\Table(name="sylius_channel_pricing") + */ class ChannelPricing extends BaseChannelPricing { } diff --git a/src/Entity/Currency/Currency.php b/src/Entity/Currency/Currency.php index 26729ddd78..9724e3d233 100644 --- a/src/Entity/Currency/Currency.php +++ b/src/Entity/Currency/Currency.php @@ -7,8 +7,10 @@ use Doctrine\ORM\Mapping as ORM; use Sylius\Component\Currency\Model\Currency as BaseCurrency; -#[ORM\Entity] -#[ORM\Table(name: 'sylius_currency')] +/** + * @ORM\Entity + * @ORM\Table(name="sylius_currency") + */ class Currency extends BaseCurrency { } diff --git a/src/Entity/Currency/ExchangeRate.php b/src/Entity/Currency/ExchangeRate.php index da26b7c5ad..0a7ea1e6a4 100644 --- a/src/Entity/Currency/ExchangeRate.php +++ b/src/Entity/Currency/ExchangeRate.php @@ -7,8 +7,10 @@ use Doctrine\ORM\Mapping as ORM; use Sylius\Component\Currency\Model\ExchangeRate as BaseExchangeRate; -#[ORM\Entity] -#[ORM\Table(name: 'sylius_exchange_rate')] +/** + * @ORM\Entity + * @ORM\Table(name="sylius_exchange_rate") + */ class ExchangeRate extends BaseExchangeRate { } diff --git a/src/Entity/Customer/Customer.php b/src/Entity/Customer/Customer.php index d623002ac2..5e87a3464d 100644 --- a/src/Entity/Customer/Customer.php +++ b/src/Entity/Customer/Customer.php @@ -7,8 +7,10 @@ use Doctrine\ORM\Mapping as ORM; use Sylius\Component\Core\Model\Customer as BaseCustomer; -#[ORM\Entity] -#[ORM\Table(name: 'sylius_customer')] +/** + * @ORM\Entity + * @ORM\Table(name="sylius_customer") + */ class Customer extends BaseCustomer { } diff --git a/src/Entity/Customer/CustomerGroup.php b/src/Entity/Customer/CustomerGroup.php index a205f1654e..da3da760a0 100644 --- a/src/Entity/Customer/CustomerGroup.php +++ b/src/Entity/Customer/CustomerGroup.php @@ -7,8 +7,10 @@ use Doctrine\ORM\Mapping as ORM; use Sylius\Component\Customer\Model\CustomerGroup as BaseCustomerGroup; -#[ORM\Entity] -#[ORM\Table(name: 'sylius_customer_group')] +/** + * @ORM\Entity + * @ORM\Table(name="sylius_customer_group") + */ class CustomerGroup extends BaseCustomerGroup { } diff --git a/src/Entity/Locale/Locale.php b/src/Entity/Locale/Locale.php index db909e5791..827e91abe3 100644 --- a/src/Entity/Locale/Locale.php +++ b/src/Entity/Locale/Locale.php @@ -7,8 +7,10 @@ use Doctrine\ORM\Mapping as ORM; use Sylius\Component\Locale\Model\Locale as BaseLocale; -#[ORM\Entity] -#[ORM\Table(name: 'sylius_locale')] +/** + * @ORM\Entity + * @ORM\Table(name="sylius_locale") + */ class Locale extends BaseLocale { } diff --git a/src/Entity/Order/Adjustment.php b/src/Entity/Order/Adjustment.php index f90c8757b3..6595ea6564 100644 --- a/src/Entity/Order/Adjustment.php +++ b/src/Entity/Order/Adjustment.php @@ -7,8 +7,10 @@ use Doctrine\ORM\Mapping as ORM; use Sylius\Component\Core\Model\Adjustment as BaseAdjustment; -#[ORM\Entity] -#[ORM\Table(name: 'sylius_adjustment')] +/** + * @ORM\Entity + * @ORM\Table(name="sylius_adjustment") + */ class Adjustment extends BaseAdjustment { } diff --git a/src/Entity/Order/Order.php b/src/Entity/Order/Order.php index 093242e0ba..67ef7f4d64 100644 --- a/src/Entity/Order/Order.php +++ b/src/Entity/Order/Order.php @@ -7,8 +7,10 @@ use Doctrine\ORM\Mapping as ORM; use Sylius\Component\Core\Model\Order as BaseOrder; -#[ORM\Entity] -#[ORM\Table(name: 'sylius_order')] +/** + * @ORM\Entity + * @ORM\Table(name="sylius_order") + */ class Order extends BaseOrder { } diff --git a/src/Entity/Order/OrderItem.php b/src/Entity/Order/OrderItem.php index 05e4cbeb84..03b7edb9a0 100644 --- a/src/Entity/Order/OrderItem.php +++ b/src/Entity/Order/OrderItem.php @@ -7,8 +7,10 @@ use Doctrine\ORM\Mapping as ORM; use Sylius\Component\Core\Model\OrderItem as BaseOrderItem; -#[ORM\Entity] -#[ORM\Table(name: 'sylius_order_item')] +/** + * @ORM\Entity + * @ORM\Table(name="sylius_order_item") + */ class OrderItem extends BaseOrderItem { } diff --git a/src/Entity/Order/OrderItemUnit.php b/src/Entity/Order/OrderItemUnit.php index 73ef6cc498..3baba86eb5 100644 --- a/src/Entity/Order/OrderItemUnit.php +++ b/src/Entity/Order/OrderItemUnit.php @@ -7,8 +7,10 @@ use Doctrine\ORM\Mapping as ORM; use Sylius\Component\Core\Model\OrderItemUnit as BaseOrderItemUnit; -#[ORM\Entity] -#[ORM\Table(name: 'sylius_order_item_unit')] +/** + * @ORM\Entity + * @ORM\Table(name="sylius_order_item_unit") + */ class OrderItemUnit extends BaseOrderItemUnit { } diff --git a/src/Entity/Order/OrderSequence.php b/src/Entity/Order/OrderSequence.php index f7475f5eaa..00a1a5d83f 100644 --- a/src/Entity/Order/OrderSequence.php +++ b/src/Entity/Order/OrderSequence.php @@ -7,8 +7,10 @@ use Doctrine\ORM\Mapping as ORM; use Sylius\Component\Core\Model\OrderSequence as BaseOrderSequence; -#[ORM\Entity] -#[ORM\Table(name: 'sylius_order_sequence')] +/** + * @ORM\Entity + * @ORM\Table(name="sylius_order_sequence") + */ class OrderSequence extends BaseOrderSequence { } diff --git a/src/Entity/Payment/GatewayConfig.php b/src/Entity/Payment/GatewayConfig.php index ffed5a0f7a..55295264e9 100644 --- a/src/Entity/Payment/GatewayConfig.php +++ b/src/Entity/Payment/GatewayConfig.php @@ -7,8 +7,10 @@ use Doctrine\ORM\Mapping as ORM; use Sylius\Bundle\PayumBundle\Model\GatewayConfig as BaseGatewayConfig; -#[ORM\Entity] -#[ORM\Table(name: 'sylius_gateway_config')] +/** + * @ORM\Entity + * @ORM\Table(name="sylius_gateway_config") + */ class GatewayConfig extends BaseGatewayConfig { } diff --git a/src/Entity/Payment/Payment.php b/src/Entity/Payment/Payment.php index d2cefd92e4..4ebeb27af0 100644 --- a/src/Entity/Payment/Payment.php +++ b/src/Entity/Payment/Payment.php @@ -7,8 +7,10 @@ use Doctrine\ORM\Mapping as ORM; use Sylius\Component\Core\Model\Payment as BasePayment; -#[ORM\Entity] -#[ORM\Table(name: 'sylius_payment')] +/** + * @ORM\Entity + * @ORM\Table(name="sylius_payment") + */ class Payment extends BasePayment { } diff --git a/src/Entity/Payment/PaymentMethod.php b/src/Entity/Payment/PaymentMethod.php index 83eb98b29e..0387e54ad2 100644 --- a/src/Entity/Payment/PaymentMethod.php +++ b/src/Entity/Payment/PaymentMethod.php @@ -8,8 +8,10 @@ use Sylius\Component\Core\Model\PaymentMethod as BasePaymentMethod; use Sylius\Component\Payment\Model\PaymentMethodTranslationInterface; -#[ORM\Entity] -#[ORM\Table(name: 'sylius_payment_method')] +/** + * @ORM\Entity + * @ORM\Table(name="sylius_payment_method") + */ class PaymentMethod extends BasePaymentMethod { protected function createTranslation(): PaymentMethodTranslationInterface diff --git a/src/Entity/Payment/PaymentMethodTranslation.php b/src/Entity/Payment/PaymentMethodTranslation.php index dcf090f4ac..e1696ad4ba 100644 --- a/src/Entity/Payment/PaymentMethodTranslation.php +++ b/src/Entity/Payment/PaymentMethodTranslation.php @@ -7,8 +7,10 @@ use Doctrine\ORM\Mapping as ORM; use Sylius\Component\Payment\Model\PaymentMethodTranslation as BasePaymentMethodTranslation; -#[ORM\Entity] -#[ORM\Table(name: 'sylius_payment_method_translation')] +/** + * @ORM\Entity + * @ORM\Table(name="sylius_payment_method_translation") + */ class PaymentMethodTranslation extends BasePaymentMethodTranslation { } diff --git a/src/Entity/Payment/PaymentSecurityToken.php b/src/Entity/Payment/PaymentSecurityToken.php index 77f7b18472..b0ed7ea32f 100644 --- a/src/Entity/Payment/PaymentSecurityToken.php +++ b/src/Entity/Payment/PaymentSecurityToken.php @@ -7,8 +7,10 @@ use Doctrine\ORM\Mapping as ORM; use Sylius\Bundle\PayumBundle\Model\PaymentSecurityToken as BasePaymentSecurityToken; -#[ORM\Entity] -#[ORM\Table(name: 'sylius_payment_security_token')] +/** + * @ORM\Entity + * @ORM\Table(name="sylius_payment_security_token") + */ class PaymentSecurityToken extends BasePaymentSecurityToken { } diff --git a/src/Entity/Product/Product.php b/src/Entity/Product/Product.php index c5462e02ed..79cb388987 100644 --- a/src/Entity/Product/Product.php +++ b/src/Entity/Product/Product.php @@ -8,8 +8,10 @@ use Sylius\Component\Core\Model\Product as BaseProduct; use Sylius\Component\Product\Model\ProductTranslationInterface; -#[ORM\Entity] -#[ORM\Table(name: 'sylius_product')] +/** + * @ORM\Entity + * @ORM\Table(name="sylius_product") + */ class Product extends BaseProduct { protected function createTranslation(): ProductTranslationInterface diff --git a/src/Entity/Product/ProductAssociation.php b/src/Entity/Product/ProductAssociation.php index 754e668076..ef56e42182 100644 --- a/src/Entity/Product/ProductAssociation.php +++ b/src/Entity/Product/ProductAssociation.php @@ -7,8 +7,10 @@ use Doctrine\ORM\Mapping as ORM; use Sylius\Component\Product\Model\ProductAssociation as BaseProductAssociation; -#[ORM\Entity] -#[ORM\Table(name: 'sylius_product_association')] +/** + * @ORM\Entity + * @ORM\Table(name="sylius_product_association") + */ class ProductAssociation extends BaseProductAssociation { } diff --git a/src/Entity/Product/ProductAssociationType.php b/src/Entity/Product/ProductAssociationType.php index 907f66b57e..9ec72bb92c 100644 --- a/src/Entity/Product/ProductAssociationType.php +++ b/src/Entity/Product/ProductAssociationType.php @@ -8,8 +8,10 @@ use Sylius\Component\Product\Model\ProductAssociationType as BaseProductAssociationType; use Sylius\Component\Product\Model\ProductAssociationTypeTranslationInterface; -#[ORM\Entity] -#[ORM\Table(name: 'sylius_product_association_type')] +/** + * @ORM\Entity + * @ORM\Table(name="sylius_product_association_type") + */ class ProductAssociationType extends BaseProductAssociationType { protected function createTranslation(): ProductAssociationTypeTranslationInterface diff --git a/src/Entity/Product/ProductAssociationTypeTranslation.php b/src/Entity/Product/ProductAssociationTypeTranslation.php index 0e0168c764..26f1d9de27 100644 --- a/src/Entity/Product/ProductAssociationTypeTranslation.php +++ b/src/Entity/Product/ProductAssociationTypeTranslation.php @@ -7,8 +7,10 @@ use Doctrine\ORM\Mapping as ORM; use Sylius\Component\Product\Model\ProductAssociationTypeTranslation as BaseProductAssociationTypeTranslation; -#[ORM\Entity] -#[ORM\Table(name: 'sylius_product_association_type_translation')] +/** + * @ORM\Entity + * @ORM\Table(name="sylius_product_association_type_translation") + */ class ProductAssociationTypeTranslation extends BaseProductAssociationTypeTranslation { } diff --git a/src/Entity/Product/ProductAttribute.php b/src/Entity/Product/ProductAttribute.php index b64895af9d..089b1ebc47 100644 --- a/src/Entity/Product/ProductAttribute.php +++ b/src/Entity/Product/ProductAttribute.php @@ -8,8 +8,10 @@ use Sylius\Component\Attribute\Model\AttributeTranslationInterface; use Sylius\Component\Product\Model\ProductAttribute as BaseProductAttribute; -#[ORM\Entity] -#[ORM\Table(name: 'sylius_product_attribute')] +/** + * @ORM\Entity + * @ORM\Table(name="sylius_product_attribute") + */ class ProductAttribute extends BaseProductAttribute { protected function createTranslation(): AttributeTranslationInterface diff --git a/src/Entity/Product/ProductAttributeTranslation.php b/src/Entity/Product/ProductAttributeTranslation.php index cfea8cd1b4..fb30aa9c0e 100644 --- a/src/Entity/Product/ProductAttributeTranslation.php +++ b/src/Entity/Product/ProductAttributeTranslation.php @@ -7,8 +7,10 @@ use Doctrine\ORM\Mapping as ORM; use Sylius\Component\Product\Model\ProductAttributeTranslation as BaseProductAttributeTranslation; -#[ORM\Entity] -#[ORM\Table(name: 'sylius_product_attribute_translation')] +/** + * @ORM\Entity + * @ORM\Table(name="sylius_product_attribute_translation") + */ class ProductAttributeTranslation extends BaseProductAttributeTranslation { } diff --git a/src/Entity/Product/ProductAttributeValue.php b/src/Entity/Product/ProductAttributeValue.php index 31cdfa0dab..2b5c00033e 100644 --- a/src/Entity/Product/ProductAttributeValue.php +++ b/src/Entity/Product/ProductAttributeValue.php @@ -7,8 +7,10 @@ use Doctrine\ORM\Mapping as ORM; use Sylius\Component\Product\Model\ProductAttributeValue as BaseProductAttributeValue; -#[ORM\Entity] -#[ORM\Table(name: 'sylius_product_attribute_value')] +/** + * @ORM\Entity + * @ORM\Table(name="sylius_product_attribute_value") + */ class ProductAttributeValue extends BaseProductAttributeValue { } diff --git a/src/Entity/Product/ProductImage.php b/src/Entity/Product/ProductImage.php index b2195e46a0..b34f9938e2 100644 --- a/src/Entity/Product/ProductImage.php +++ b/src/Entity/Product/ProductImage.php @@ -7,8 +7,10 @@ use Doctrine\ORM\Mapping as ORM; use Sylius\Component\Core\Model\ProductImage as BaseProductImage; -#[ORM\Entity] -#[ORM\Table(name: 'sylius_product_image')] +/** + * @ORM\Entity + * @ORM\Table(name="sylius_product_image") + */ class ProductImage extends BaseProductImage { } diff --git a/src/Entity/Product/ProductOption.php b/src/Entity/Product/ProductOption.php index 152788b8ed..a8a4d045d5 100644 --- a/src/Entity/Product/ProductOption.php +++ b/src/Entity/Product/ProductOption.php @@ -8,8 +8,10 @@ use Sylius\Component\Product\Model\ProductOption as BaseProductOption; use Sylius\Component\Product\Model\ProductOptionTranslationInterface; -#[ORM\Entity] -#[ORM\Table(name: 'sylius_product_option')] +/** + * @ORM\Entity + * @ORM\Table(name="sylius_product_option") + */ class ProductOption extends BaseProductOption { protected function createTranslation(): ProductOptionTranslationInterface diff --git a/src/Entity/Product/ProductOptionTranslation.php b/src/Entity/Product/ProductOptionTranslation.php index 484b91bf6a..a94204bdbd 100644 --- a/src/Entity/Product/ProductOptionTranslation.php +++ b/src/Entity/Product/ProductOptionTranslation.php @@ -7,8 +7,10 @@ use Doctrine\ORM\Mapping as ORM; use Sylius\Component\Product\Model\ProductOptionTranslation as BaseProductOptionTranslation; -#[ORM\Entity] -#[ORM\Table(name: 'sylius_product_option_translation')] +/** + * @ORM\Entity + * @ORM\Table(name="sylius_product_option_translation") + */ class ProductOptionTranslation extends BaseProductOptionTranslation { } diff --git a/src/Entity/Product/ProductOptionValue.php b/src/Entity/Product/ProductOptionValue.php index af1c291941..1512cdbf3d 100644 --- a/src/Entity/Product/ProductOptionValue.php +++ b/src/Entity/Product/ProductOptionValue.php @@ -8,8 +8,10 @@ use Sylius\Component\Product\Model\ProductOptionValue as BaseProductOptionValue; use Sylius\Component\Product\Model\ProductOptionValueTranslationInterface; -#[ORM\Entity] -#[ORM\Table(name: 'sylius_product_option_value')] +/** + * @ORM\Entity + * @ORM\Table(name="sylius_product_option_value") + */ class ProductOptionValue extends BaseProductOptionValue { protected function createTranslation(): ProductOptionValueTranslationInterface diff --git a/src/Entity/Product/ProductOptionValueTranslation.php b/src/Entity/Product/ProductOptionValueTranslation.php index 068b61635d..66252238d7 100644 --- a/src/Entity/Product/ProductOptionValueTranslation.php +++ b/src/Entity/Product/ProductOptionValueTranslation.php @@ -7,8 +7,10 @@ use Doctrine\ORM\Mapping as ORM; use Sylius\Component\Product\Model\ProductOptionValueTranslation as BaseProductOptionValueTranslation; -#[ORM\Entity] -#[ORM\Table(name: 'sylius_product_option_value_translation')] +/** + * @ORM\Entity + * @ORM\Table(name="sylius_product_option_value_translation") + */ class ProductOptionValueTranslation extends BaseProductOptionValueTranslation { } diff --git a/src/Entity/Product/ProductReview.php b/src/Entity/Product/ProductReview.php index 205d997d00..e11f85a0a4 100644 --- a/src/Entity/Product/ProductReview.php +++ b/src/Entity/Product/ProductReview.php @@ -7,8 +7,10 @@ use Doctrine\ORM\Mapping as ORM; use Sylius\Component\Core\Model\ProductReview as BaseProductReview; -#[ORM\Entity] -#[ORM\Table(name: 'sylius_product_review')] +/** + * @ORM\Entity + * @ORM\Table(name="sylius_product_review") + */ class ProductReview extends BaseProductReview { } diff --git a/src/Entity/Product/ProductTaxon.php b/src/Entity/Product/ProductTaxon.php index 2ad70f992e..57464a839c 100644 --- a/src/Entity/Product/ProductTaxon.php +++ b/src/Entity/Product/ProductTaxon.php @@ -7,8 +7,10 @@ use Doctrine\ORM\Mapping as ORM; use Sylius\Component\Core\Model\ProductTaxon as BaseProductTaxon; -#[ORM\Entity] -#[ORM\Table(name: 'sylius_product_taxon')] +/** + * @ORM\Entity + * @ORM\Table(name="sylius_product_taxon") + */ class ProductTaxon extends BaseProductTaxon { } diff --git a/src/Entity/Product/ProductTranslation.php b/src/Entity/Product/ProductTranslation.php index 031272d826..6c55667e74 100644 --- a/src/Entity/Product/ProductTranslation.php +++ b/src/Entity/Product/ProductTranslation.php @@ -7,8 +7,10 @@ use Doctrine\ORM\Mapping as ORM; use Sylius\Component\Core\Model\ProductTranslation as BaseProductTranslation; -#[ORM\Entity] -#[ORM\Table(name: 'sylius_product_translation')] +/** + * @ORM\Entity + * @ORM\Table(name="sylius_product_translation") + */ class ProductTranslation extends BaseProductTranslation { } diff --git a/src/Entity/Product/ProductVariant.php b/src/Entity/Product/ProductVariant.php index c151e1747e..7fa223af26 100644 --- a/src/Entity/Product/ProductVariant.php +++ b/src/Entity/Product/ProductVariant.php @@ -8,8 +8,10 @@ use Sylius\Component\Core\Model\ProductVariant as BaseProductVariant; use Sylius\Component\Product\Model\ProductVariantTranslationInterface; -#[ORM\Entity] -#[ORM\Table(name: 'sylius_product_variant')] +/** + * @ORM\Entity + * @ORM\Table(name="sylius_product_variant") + */ class ProductVariant extends BaseProductVariant { protected function createTranslation(): ProductVariantTranslationInterface diff --git a/src/Entity/Product/ProductVariantTranslation.php b/src/Entity/Product/ProductVariantTranslation.php index d30f6d168e..af08696350 100644 --- a/src/Entity/Product/ProductVariantTranslation.php +++ b/src/Entity/Product/ProductVariantTranslation.php @@ -7,8 +7,10 @@ use Doctrine\ORM\Mapping as ORM; use Sylius\Component\Product\Model\ProductVariantTranslation as BaseProductVariantTranslation; -#[ORM\Entity] -#[ORM\Table(name: 'sylius_product_variant_translation')] +/** + * @ORM\Entity + * @ORM\Table(name="sylius_product_variant_translation") + */ class ProductVariantTranslation extends BaseProductVariantTranslation { } diff --git a/src/Entity/Promotion/CatalogPromotion.php b/src/Entity/Promotion/CatalogPromotion.php index e1c250a771..7928a6c31e 100644 --- a/src/Entity/Promotion/CatalogPromotion.php +++ b/src/Entity/Promotion/CatalogPromotion.php @@ -7,8 +7,10 @@ use Doctrine\ORM\Mapping as ORM; use Sylius\Component\Core\Model\CatalogPromotion as BaseCatalogPromotion; -#[ORM\Entity] -#[ORM\Table(name: 'sylius_catalog_promotion')] +/** + * @ORM\Entity + * @ORM\Table(name="sylius_catalog_promotion") + */ class CatalogPromotion extends BaseCatalogPromotion { } diff --git a/src/Entity/Promotion/CatalogPromotionAction.php b/src/Entity/Promotion/CatalogPromotionAction.php index 4257f6342e..a90318a7f0 100644 --- a/src/Entity/Promotion/CatalogPromotionAction.php +++ b/src/Entity/Promotion/CatalogPromotionAction.php @@ -7,8 +7,10 @@ use Doctrine\ORM\Mapping as ORM; use Sylius\Component\Promotion\Model\CatalogPromotionAction as BaseCatalogPromotionAction; -#[ORM\Entity] -#[ORM\Table(name: 'sylius_catalog_promotion_action')] +/** + * @ORM\Entity + * @ORM\Table(name="sylius_catalog_promotion_action") + */ class CatalogPromotionAction extends BaseCatalogPromotionAction { } diff --git a/src/Entity/Promotion/CatalogPromotionScope.php b/src/Entity/Promotion/CatalogPromotionScope.php index e90bdf8adc..bc6307b4ef 100644 --- a/src/Entity/Promotion/CatalogPromotionScope.php +++ b/src/Entity/Promotion/CatalogPromotionScope.php @@ -7,8 +7,10 @@ use Doctrine\ORM\Mapping as ORM; use Sylius\Component\Core\Model\CatalogPromotionScope as BaseCatalogPromotionScope; -#[ORM\Entity] -#[ORM\Table(name: 'sylius_catalog_promotion_scope')] +/** + * @ORM\Entity + * @ORM\Table(name="sylius_catalog_promotion_scope") + */ class CatalogPromotionScope extends BaseCatalogPromotionScope { } diff --git a/src/Entity/Promotion/Promotion.php b/src/Entity/Promotion/Promotion.php index e7b9088e50..cdebdcb8ca 100644 --- a/src/Entity/Promotion/Promotion.php +++ b/src/Entity/Promotion/Promotion.php @@ -7,8 +7,10 @@ use Doctrine\ORM\Mapping as ORM; use Sylius\Component\Core\Model\Promotion as BasePromotion; -#[ORM\Entity] -#[ORM\Table(name: 'sylius_promotion')] +/** + * @ORM\Entity + * @ORM\Table(name="sylius_promotion") + */ class Promotion extends BasePromotion { } diff --git a/src/Entity/Promotion/PromotionAction.php b/src/Entity/Promotion/PromotionAction.php index e822947ab3..68fe7f6347 100644 --- a/src/Entity/Promotion/PromotionAction.php +++ b/src/Entity/Promotion/PromotionAction.php @@ -7,8 +7,10 @@ use Doctrine\ORM\Mapping as ORM; use Sylius\Component\Promotion\Model\PromotionAction as BasePromotionAction; -#[ORM\Entity] -#[ORM\Table(name: 'sylius_promotion_action')] +/** + * @ORM\Entity + * @ORM\Table(name="sylius_promotion_action") + */ class PromotionAction extends BasePromotionAction { } diff --git a/src/Entity/Promotion/PromotionCoupon.php b/src/Entity/Promotion/PromotionCoupon.php index ed79b2300b..f70ec126bb 100644 --- a/src/Entity/Promotion/PromotionCoupon.php +++ b/src/Entity/Promotion/PromotionCoupon.php @@ -7,8 +7,10 @@ use Doctrine\ORM\Mapping as ORM; use Sylius\Component\Core\Model\PromotionCoupon as BasePromotionCoupon; -#[ORM\Entity] -#[ORM\Table(name: 'sylius_promotion_coupon')] +/** + * @ORM\Entity + * @ORM\Table(name="sylius_promotion_coupon") + */ class PromotionCoupon extends BasePromotionCoupon { } diff --git a/src/Entity/Promotion/PromotionRule.php b/src/Entity/Promotion/PromotionRule.php index 9eceb06528..348c8475e0 100644 --- a/src/Entity/Promotion/PromotionRule.php +++ b/src/Entity/Promotion/PromotionRule.php @@ -7,8 +7,10 @@ use Doctrine\ORM\Mapping as ORM; use Sylius\Component\Promotion\Model\PromotionRule as BasePromotionRule; -#[ORM\Entity] -#[ORM\Table(name: 'sylius_promotion_rule')] +/** + * @ORM\Entity + * @ORM\Table(name="sylius_promotion_rule") + */ class PromotionRule extends BasePromotionRule { } diff --git a/src/Entity/Shipping/Shipment.php b/src/Entity/Shipping/Shipment.php index fe4ee6ce96..7c4ae5ae77 100644 --- a/src/Entity/Shipping/Shipment.php +++ b/src/Entity/Shipping/Shipment.php @@ -7,8 +7,10 @@ use Doctrine\ORM\Mapping as ORM; use Sylius\Component\Core\Model\Shipment as BaseShipment; -#[ORM\Entity] -#[ORM\Table(name: 'sylius_shipment')] +/** + * @ORM\Entity + * @ORM\Table(name="sylius_shipment") + */ class Shipment extends BaseShipment { } diff --git a/src/Entity/Shipping/ShippingCategory.php b/src/Entity/Shipping/ShippingCategory.php index 794236e63f..3e95d3aa82 100644 --- a/src/Entity/Shipping/ShippingCategory.php +++ b/src/Entity/Shipping/ShippingCategory.php @@ -7,8 +7,10 @@ use Doctrine\ORM\Mapping as ORM; use Sylius\Component\Shipping\Model\ShippingCategory as BaseShippingCategory; -#[ORM\Entity] -#[ORM\Table(name: 'sylius_shipping_category')] +/** + * @ORM\Entity + * @ORM\Table(name="sylius_shipping_category") + */ class ShippingCategory extends BaseShippingCategory { } diff --git a/src/Entity/Shipping/ShippingMethod.php b/src/Entity/Shipping/ShippingMethod.php index 21d489e880..30cd0df0ed 100644 --- a/src/Entity/Shipping/ShippingMethod.php +++ b/src/Entity/Shipping/ShippingMethod.php @@ -8,8 +8,10 @@ use Sylius\Component\Core\Model\ShippingMethod as BaseShippingMethod; use Sylius\Component\Shipping\Model\ShippingMethodTranslationInterface; -#[ORM\Entity] -#[ORM\Table(name: 'sylius_shipping_method')] +/** + * @ORM\Entity + * @ORM\Table(name="sylius_shipping_method") + */ class ShippingMethod extends BaseShippingMethod { protected function createTranslation(): ShippingMethodTranslationInterface diff --git a/src/Entity/Shipping/ShippingMethodTranslation.php b/src/Entity/Shipping/ShippingMethodTranslation.php index 4ebb903731..abdb684e0a 100644 --- a/src/Entity/Shipping/ShippingMethodTranslation.php +++ b/src/Entity/Shipping/ShippingMethodTranslation.php @@ -7,8 +7,10 @@ use Doctrine\ORM\Mapping as ORM; use Sylius\Component\Shipping\Model\ShippingMethodTranslation as BaseShippingMethodTranslation; -#[ORM\Entity] -#[ORM\Table(name: 'sylius_shipping_method_translation')] +/** + * @ORM\Entity + * @ORM\Table(name="sylius_shipping_method_translation") + */ class ShippingMethodTranslation extends BaseShippingMethodTranslation { } diff --git a/src/Entity/Taxation/TaxCategory.php b/src/Entity/Taxation/TaxCategory.php index 29cf19a0f0..7ceecf9a1e 100644 --- a/src/Entity/Taxation/TaxCategory.php +++ b/src/Entity/Taxation/TaxCategory.php @@ -7,8 +7,10 @@ use Doctrine\ORM\Mapping as ORM; use Sylius\Component\Taxation\Model\TaxCategory as BaseTaxCategory; -#[ORM\Entity] -#[ORM\Table(name: 'sylius_tax_category')] +/** + * @ORM\Entity + * @ORM\Table(name="sylius_tax_category") + */ class TaxCategory extends BaseTaxCategory { } diff --git a/src/Entity/Taxation/TaxRate.php b/src/Entity/Taxation/TaxRate.php index 0b681a964a..545cea21d8 100644 --- a/src/Entity/Taxation/TaxRate.php +++ b/src/Entity/Taxation/TaxRate.php @@ -7,8 +7,10 @@ use Doctrine\ORM\Mapping as ORM; use Sylius\Component\Core\Model\TaxRate as BaseTaxRate; -#[ORM\Entity] -#[ORM\Table(name: 'sylius_tax_rate')] +/** + * @ORM\Entity + * @ORM\Table(name="sylius_tax_rate") + */ class TaxRate extends BaseTaxRate { } diff --git a/src/Entity/Taxonomy/Taxon.php b/src/Entity/Taxonomy/Taxon.php index fe85db5337..a8151b6b16 100644 --- a/src/Entity/Taxonomy/Taxon.php +++ b/src/Entity/Taxonomy/Taxon.php @@ -8,8 +8,10 @@ use Sylius\Component\Core\Model\Taxon as BaseTaxon; use Sylius\Component\Taxonomy\Model\TaxonTranslationInterface; -#[ORM\Entity] -#[ORM\Table(name: 'sylius_taxon')] +/** + * @ORM\Entity + * @ORM\Table(name="sylius_taxon") + */ class Taxon extends BaseTaxon { protected function createTranslation(): TaxonTranslationInterface diff --git a/src/Entity/Taxonomy/TaxonImage.php b/src/Entity/Taxonomy/TaxonImage.php index 458f2db781..192414ffd2 100644 --- a/src/Entity/Taxonomy/TaxonImage.php +++ b/src/Entity/Taxonomy/TaxonImage.php @@ -7,8 +7,10 @@ use Doctrine\ORM\Mapping as ORM; use Sylius\Component\Core\Model\TaxonImage as BaseTaxonImage; -#[ORM\Entity] -#[ORM\Table(name: 'sylius_taxon_image')] +/** + * @ORM\Entity + * @ORM\Table(name="sylius_taxon_image") + */ class TaxonImage extends BaseTaxonImage { } diff --git a/src/Entity/Taxonomy/TaxonTranslation.php b/src/Entity/Taxonomy/TaxonTranslation.php index fddde85831..525be716c4 100644 --- a/src/Entity/Taxonomy/TaxonTranslation.php +++ b/src/Entity/Taxonomy/TaxonTranslation.php @@ -7,8 +7,10 @@ use Doctrine\ORM\Mapping as ORM; use Sylius\Component\Taxonomy\Model\TaxonTranslation as BaseTaxonTranslation; -#[ORM\Entity] -#[ORM\Table(name: 'sylius_taxon_translation')] +/** + * @ORM\Entity + * @ORM\Table(name="sylius_taxon_translation") + */ class TaxonTranslation extends BaseTaxonTranslation { } diff --git a/src/Entity/User/AdminUser.php b/src/Entity/User/AdminUser.php index 49ccb011e6..61c00a6bfe 100644 --- a/src/Entity/User/AdminUser.php +++ b/src/Entity/User/AdminUser.php @@ -7,8 +7,10 @@ use Doctrine\ORM\Mapping as ORM; use Sylius\Component\Core\Model\AdminUser as BaseAdminUser; -#[ORM\Entity] -#[ORM\Table(name: 'sylius_admin_user')] +/** + * @ORM\Entity + * @ORM\Table(name="sylius_admin_user") + */ class AdminUser extends BaseAdminUser { } diff --git a/src/Entity/User/ShopUser.php b/src/Entity/User/ShopUser.php index 9e114e6d5a..c573d8d893 100644 --- a/src/Entity/User/ShopUser.php +++ b/src/Entity/User/ShopUser.php @@ -7,8 +7,10 @@ use Doctrine\ORM\Mapping as ORM; use Sylius\Component\Core\Model\ShopUser as BaseShopUser; -#[ORM\Entity] -#[ORM\Table(name: 'sylius_shop_user')] +/** + * @ORM\Entity + * @ORM\Table(name="sylius_shop_user") + */ class ShopUser extends BaseShopUser { } diff --git a/src/Entity/User/UserOAuth.php b/src/Entity/User/UserOAuth.php index 9645086f0a..ad59566b2f 100644 --- a/src/Entity/User/UserOAuth.php +++ b/src/Entity/User/UserOAuth.php @@ -7,8 +7,10 @@ use Doctrine\ORM\Mapping as ORM; use Sylius\Component\User\Model\UserOAuth as BaseUserOAuth; -#[ORM\Entity] -#[ORM\Table(name: 'sylius_user_oauth')] +/** + * @ORM\Entity + * @ORM\Table(name="sylius_user_oauth") + */ class UserOAuth extends BaseUserOAuth { }