Skip to content

Commit

Permalink
[Maintenance] PHP Attributes in the Entity classes
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafikooo committed Dec 13, 2022
1 parent 67896b9 commit 05892c9
Show file tree
Hide file tree
Showing 58 changed files with 116 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Entity/Addressing/Address.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
* @ORM\Entity
* @ORM\Table(name="sylius_address")
*/
#[ORM\Entity]
#[ORM\Table(name: 'sylius_address')]
class Address extends BaseAddress
{
}
2 changes: 2 additions & 0 deletions src/Entity/Addressing/Country.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
* @ORM\Entity
* @ORM\Table(name="sylius_country")
*/
#[ORM\Entity]
#[ORM\Table(name: 'sylius_country')]
class Country extends BaseCountry
{
}
2 changes: 2 additions & 0 deletions src/Entity/Addressing/Province.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
* @ORM\Entity
* @ORM\Table(name="sylius_province")
*/
#[ORM\Entity]
#[ORM\Table(name: 'sylius_province')]
class Province extends BaseProvince
{
}
2 changes: 2 additions & 0 deletions src/Entity/Addressing/Zone.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
* @ORM\Entity
* @ORM\Table(name="sylius_zone")
*/
#[ORM\Entity]
#[ORM\Table(name: 'sylius_zone')]
class Zone extends BaseZone
{
}
2 changes: 2 additions & 0 deletions src/Entity/Addressing/ZoneMember.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
* @ORM\Entity
* @ORM\Table(name="sylius_zone_member")
*/
#[ORM\Entity]
#[ORM\Table(name: 'sylius_zone_member')]
class ZoneMember extends BaseZoneMember
{
}
2 changes: 2 additions & 0 deletions src/Entity/Channel/Channel.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
* @ORM\Entity
* @ORM\Table(name="sylius_channel")
*/
#[ORM\Entity]
#[ORM\Table(name: 'sylius_channel')]
class Channel extends BaseChannel
{
}
2 changes: 2 additions & 0 deletions src/Entity/Channel/ChannelPricing.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
* @ORM\Entity
* @ORM\Table(name="sylius_channel_pricing")
*/
#[ORM\Entity]
#[ORM\Table(name: 'sylius_channel_pricing')]
class ChannelPricing extends BaseChannelPricing
{
}
2 changes: 2 additions & 0 deletions src/Entity/Currency/Currency.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
* @ORM\Entity
* @ORM\Table(name="sylius_currency")
*/
#[ORM\Entity]
#[ORM\Table(name: 'sylius_currency')]
class Currency extends BaseCurrency
{
}
2 changes: 2 additions & 0 deletions src/Entity/Currency/ExchangeRate.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
* @ORM\Entity
* @ORM\Table(name="sylius_exchange_rate")
*/
#[ORM\Entity]
#[ORM\Table(name: 'sylius_exchange_rate')]
class ExchangeRate extends BaseExchangeRate
{
}
2 changes: 2 additions & 0 deletions src/Entity/Customer/Customer.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
* @ORM\Entity
* @ORM\Table(name="sylius_customer")
*/
#[ORM\Entity]
#[ORM\Table(name: 'sylius_customer')]
class Customer extends BaseCustomer
{
}
2 changes: 2 additions & 0 deletions src/Entity/Customer/CustomerGroup.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
* @ORM\Entity
* @ORM\Table(name="sylius_customer_group")
*/
#[ORM\Entity]
#[ORM\Table(name: 'sylius_customer_group')]
class CustomerGroup extends BaseCustomerGroup
{
}
2 changes: 2 additions & 0 deletions src/Entity/Locale/Locale.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
* @ORM\Entity
* @ORM\Table(name="sylius_locale")
*/
#[ORM\Entity]
#[ORM\Table(name: 'sylius_locale')]
class Locale extends BaseLocale
{
}
2 changes: 2 additions & 0 deletions src/Entity/Order/Adjustment.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
* @ORM\Entity
* @ORM\Table(name="sylius_adjustment")
*/
#[ORM\Entity]
#[ORM\Table(name: 'sylius_adjustment')]
class Adjustment extends BaseAdjustment
{
}
2 changes: 2 additions & 0 deletions src/Entity/Order/Order.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
* @ORM\Entity
* @ORM\Table(name="sylius_order")
*/
#[ORM\Entity]
#[ORM\Table(name: 'sylius_order')]
class Order extends BaseOrder
{
}
2 changes: 2 additions & 0 deletions src/Entity/Order/OrderItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
* @ORM\Entity
* @ORM\Table(name="sylius_order_item")
*/
#[ORM\Entity]
#[ORM\Table(name: 'sylius_order_item')]
class OrderItem extends BaseOrderItem
{
}
2 changes: 2 additions & 0 deletions src/Entity/Order/OrderItemUnit.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
* @ORM\Entity
* @ORM\Table(name="sylius_order_item_unit")
*/
#[ORM\Entity]
#[ORM\Table(name: 'sylius_order_item_unit')]
class OrderItemUnit extends BaseOrderItemUnit
{
}
2 changes: 2 additions & 0 deletions src/Entity/Order/OrderSequence.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
* @ORM\Entity
* @ORM\Table(name="sylius_order_sequence")
*/
#[ORM\Entity]
#[ORM\Table(name: 'sylius_order_sequence')]
class OrderSequence extends BaseOrderSequence
{
}
2 changes: 2 additions & 0 deletions src/Entity/Payment/GatewayConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
* @ORM\Entity
* @ORM\Table(name="sylius_gateway_config")
*/
#[ORM\Entity]
#[ORM\Table(name: 'sylius_gateway_config')]
class GatewayConfig extends BaseGatewayConfig
{
}
2 changes: 2 additions & 0 deletions src/Entity/Payment/Payment.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
* @ORM\Entity
* @ORM\Table(name="sylius_payment")
*/
#[ORM\Entity]
#[ORM\Table(name: 'sylius_payment')]
class Payment extends BasePayment
{
}
2 changes: 2 additions & 0 deletions src/Entity/Payment/PaymentMethod.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
* @ORM\Entity
* @ORM\Table(name="sylius_payment_method")
*/
#[ORM\Entity]
#[ORM\Table(name: 'sylius_payment_method')]
class PaymentMethod extends BasePaymentMethod
{
protected function createTranslation(): PaymentMethodTranslationInterface
Expand Down
2 changes: 2 additions & 0 deletions src/Entity/Payment/PaymentMethodTranslation.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
* @ORM\Entity
* @ORM\Table(name="sylius_payment_method_translation")
*/
#[ORM\Entity]
#[ORM\Table(name: 'sylius_payment_method_translation')]
class PaymentMethodTranslation extends BasePaymentMethodTranslation
{
}
2 changes: 2 additions & 0 deletions src/Entity/Payment/PaymentSecurityToken.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
* @ORM\Entity
* @ORM\Table(name="sylius_payment_security_token")
*/
#[ORM\Entity]
#[ORM\Table(name: 'sylius_payment_security_token')]
class PaymentSecurityToken extends BasePaymentSecurityToken
{
}
2 changes: 2 additions & 0 deletions src/Entity/Product/Product.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
* @ORM\Entity
* @ORM\Table(name="sylius_product")
*/
#[ORM\Entity]
#[ORM\Table(name: 'sylius_product')]
class Product extends BaseProduct
{
protected function createTranslation(): ProductTranslationInterface
Expand Down
2 changes: 2 additions & 0 deletions src/Entity/Product/ProductAssociation.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
* @ORM\Entity
* @ORM\Table(name="sylius_product_association")
*/
#[ORM\Entity]
#[ORM\Table(name: 'sylius_product_association')]
class ProductAssociation extends BaseProductAssociation
{
}
2 changes: 2 additions & 0 deletions src/Entity/Product/ProductAssociationType.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
* @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
Expand Down
2 changes: 2 additions & 0 deletions src/Entity/Product/ProductAssociationTypeTranslation.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
* @ORM\Entity
* @ORM\Table(name="sylius_product_association_type_translation")
*/
#[ORM\Entity]
#[ORM\Table(name: 'sylius_product_association_type_translation')]
class ProductAssociationTypeTranslation extends BaseProductAssociationTypeTranslation
{
}
2 changes: 2 additions & 0 deletions src/Entity/Product/ProductAttribute.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
* @ORM\Entity
* @ORM\Table(name="sylius_product_attribute")
*/
#[ORM\Entity]
#[ORM\Table(name: 'sylius_product_attribute')]
class ProductAttribute extends BaseProductAttribute
{
protected function createTranslation(): AttributeTranslationInterface
Expand Down
2 changes: 2 additions & 0 deletions src/Entity/Product/ProductAttributeTranslation.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
* @ORM\Entity
* @ORM\Table(name="sylius_product_attribute_translation")
*/
#[ORM\Entity]
#[ORM\Table(name: 'sylius_product_attribute_translation')]
class ProductAttributeTranslation extends BaseProductAttributeTranslation
{
}
2 changes: 2 additions & 0 deletions src/Entity/Product/ProductAttributeValue.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
* @ORM\Entity
* @ORM\Table(name="sylius_product_attribute_value")
*/
#[ORM\Entity]
#[ORM\Table(name: 'sylius_product_attribute_value')]
class ProductAttributeValue extends BaseProductAttributeValue
{
}
2 changes: 2 additions & 0 deletions src/Entity/Product/ProductImage.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
* @ORM\Entity
* @ORM\Table(name="sylius_product_image")
*/
#[ORM\Entity]
#[ORM\Table(name: 'sylius_product_image')]
class ProductImage extends BaseProductImage
{
}
2 changes: 2 additions & 0 deletions src/Entity/Product/ProductOption.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
* @ORM\Entity
* @ORM\Table(name="sylius_product_option")
*/
#[ORM\Entity]
#[ORM\Table(name: 'sylius_product_option')]
class ProductOption extends BaseProductOption
{
protected function createTranslation(): ProductOptionTranslationInterface
Expand Down
2 changes: 2 additions & 0 deletions src/Entity/Product/ProductOptionTranslation.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
* @ORM\Entity
* @ORM\Table(name="sylius_product_option_translation")
*/
#[ORM\Entity]
#[ORM\Table(name: 'sylius_product_option_translation')]
class ProductOptionTranslation extends BaseProductOptionTranslation
{
}
2 changes: 2 additions & 0 deletions src/Entity/Product/ProductOptionValue.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
* @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
Expand Down
2 changes: 2 additions & 0 deletions src/Entity/Product/ProductOptionValueTranslation.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
* @ORM\Entity
* @ORM\Table(name="sylius_product_option_value_translation")
*/
#[ORM\Entity]
#[ORM\Table(name: 'sylius_product_option_value_translation')]
class ProductOptionValueTranslation extends BaseProductOptionValueTranslation
{
}
2 changes: 2 additions & 0 deletions src/Entity/Product/ProductReview.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
* @ORM\Entity
* @ORM\Table(name="sylius_product_review")
*/
#[ORM\Entity]
#[ORM\Table(name: 'sylius_product_review')]
class ProductReview extends BaseProductReview
{
}
2 changes: 2 additions & 0 deletions src/Entity/Product/ProductTaxon.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
* @ORM\Entity
* @ORM\Table(name="sylius_product_taxon")
*/
#[ORM\Entity]
#[ORM\Table(name: 'sylius_product_taxon')]
class ProductTaxon extends BaseProductTaxon
{
}
2 changes: 2 additions & 0 deletions src/Entity/Product/ProductTranslation.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
* @ORM\Entity
* @ORM\Table(name="sylius_product_translation")
*/
#[ORM\Entity]
#[ORM\Table(name: 'sylius_product_translation')]
class ProductTranslation extends BaseProductTranslation
{
}
2 changes: 2 additions & 0 deletions src/Entity/Product/ProductVariant.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
* @ORM\Entity
* @ORM\Table(name="sylius_product_variant")
*/
#[ORM\Entity]
#[ORM\Table(name: 'sylius_product_variant')]
class ProductVariant extends BaseProductVariant
{
protected function createTranslation(): ProductVariantTranslationInterface
Expand Down
2 changes: 2 additions & 0 deletions src/Entity/Product/ProductVariantTranslation.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
* @ORM\Entity
* @ORM\Table(name="sylius_product_variant_translation")
*/
#[ORM\Entity]
#[ORM\Table(name: 'sylius_product_variant_translation')]
class ProductVariantTranslation extends BaseProductVariantTranslation
{
}
2 changes: 2 additions & 0 deletions src/Entity/Promotion/CatalogPromotion.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
* @ORM\Entity
* @ORM\Table(name="sylius_catalog_promotion")
*/
#[ORM\Entity]
#[ORM\Table(name: 'sylius_catalog_promotion')]
class CatalogPromotion extends BaseCatalogPromotion
{
}
2 changes: 2 additions & 0 deletions src/Entity/Promotion/CatalogPromotionAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
* @ORM\Entity
* @ORM\Table(name="sylius_catalog_promotion_action")
*/
#[ORM\Entity]
#[ORM\Table(name: 'sylius_catalog_promotion_action')]
class CatalogPromotionAction extends BaseCatalogPromotionAction
{
}
2 changes: 2 additions & 0 deletions src/Entity/Promotion/CatalogPromotionScope.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
* @ORM\Entity
* @ORM\Table(name="sylius_catalog_promotion_scope")
*/
#[ORM\Entity]
#[ORM\Table(name: 'sylius_catalog_promotion_scope')]
class CatalogPromotionScope extends BaseCatalogPromotionScope
{
}
2 changes: 2 additions & 0 deletions src/Entity/Promotion/Promotion.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
* @ORM\Entity
* @ORM\Table(name="sylius_promotion")
*/
#[ORM\Entity]
#[ORM\Table(name: 'sylius_promotion')]
class Promotion extends BasePromotion
{
}
2 changes: 2 additions & 0 deletions src/Entity/Promotion/PromotionAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
* @ORM\Entity
* @ORM\Table(name="sylius_promotion_action")
*/
#[ORM\Entity]
#[ORM\Table(name: 'sylius_promotion_action')]
class PromotionAction extends BasePromotionAction
{
}
Loading

0 comments on commit 05892c9

Please sign in to comment.