Forms

  • sylius_add_to_cart
    • cartItem
    • addToWishlist
    • wishlists
    • _token

sylius_add_to_cart

"Sylius\Bundle\CoreBundle\Form\Type\Order\AddToCartType"

Default Data

Property Value
Model Format same as normalized format
Normalized Format
Sylius\Bundle\OrderBundle\Controller\AddToCartCommand {#13550
  -cart: BitBag\OpenMarketplace\Component\Order\Entity\Order {#9427 …}
  -cartItem: BitBag\OpenMarketplace\Component\Order\Entity\OrderItem {#13397
    #id: null
    #order: null
    #quantity: 1
    #unitPrice: 0
    #originalUnitPrice: 0
    #total: 0
    #immutable: false
    #units: Doctrine\Common\Collections\ArrayCollection {#13562 …}
    #unitsTotal: 0
    #adjustments: Doctrine\Common\Collections\ArrayCollection {#13571 …}
    #adjustmentsTotal: 0
    #version: 1
    #variant: Sylius\Component\Core\Model\ProductVariant {#7041
      #id: 232
      #code: "SPOTSHOP-002-01-1"
      #product: BitBag\OpenMarketplace\Component\Product\Entity\Product {#7056
        #id: 237
        #code: "SPOTSHOP-002-1"
        #attributes: Doctrine\ORM\PersistentCollection {#4744 …}
        #variants: Doctrine\ORM\PersistentCollection {#7182
          #collection: Doctrine\Common\Collections\ArrayCollection {#7180 …}
          #initialized: true
          -snapshot: [ …4]
          -owner: BitBag\OpenMarketplace\Component\Product\Entity\Product {#7056}
          -association: [ …16]
          -em: Doctrine\ORM\EntityManager {#613 …}
          -backRefFieldName: "product"
          -typeClass: Symfony\Component\VarDumper\Caster\CutStub {#43470 …}
          -isDirty: false
        }
        #options: Doctrine\ORM\PersistentCollection {#7210 …}
        #associations: Doctrine\ORM\PersistentCollection {#7189 …}
        #createdAt: DateTime @1722280153 {#7032
          date: 2024-07-29 19:09:13.0 UTC (+00:00)
        }
        #updatedAt: null
        #enabled: true
        #translations: Doctrine\ORM\PersistentCollection {#7280 …}
        #translationsCache: [
          "pt_BR" => Sylius\Component\Core\Model\ProductTranslation {#7284
            #locale: "pt_BR"
            #translatable: BitBag\OpenMarketplace\Component\Product\Entity\Product {#7056}
            #id: 208
            #name: "iPhone 15 Pro Max"
            #slug: "iPhone_15_Pro_Max_1_SPOTSHOP-002-1_237"
            #description: "Where can I get some? There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable. If you are going to use a passage of Lorem Ipsum, you need to be sure there isn't anything embarrassing hidden in the middle of text. All the Lorem Ipsum generators on the Internet tend to repeat predefined chunks as necessary, making this the first true generator on the Internet. It uses a dictionary of over 200 Latin words, combined with a handful of model sentence structures, to generate Lorem Ipsum which looks reasonable. The generated Lorem Ipsum is therefore always free from repetition, injected humour, or non-characteristic words etc."
            #metaKeywords: null
            #metaDescription: null
            #shortDescription: null
          }
        ]
        #currentLocale: "pt_BR"
        #currentTranslation: null
        #fallbackLocale: "en_US"
        #variantSelectionMethod: "choice"
        #productTaxons: Doctrine\ORM\PersistentCollection {#7136 …}
        #channels: Doctrine\ORM\PersistentCollection {#7119 …}
        #mainTaxon: Proxies\__CG__\Sylius\Component\Core\Model\Taxon {#6357 …}
        #reviews: Doctrine\ORM\PersistentCollection {#7281 …}
        #averageRating: 0.0
        #images: Doctrine\ORM\PersistentCollection {#7036 …}
        #vendor: Proxies\__CG__\BitBag\OpenMarketplace\Component\Vendor\Entity\Vendor {#7087 …}
        #deleted: false
      }
      #optionValues: Doctrine\ORM\PersistentCollection {#7376 …}
      #position: 0
      #createdAt: DateTime @1722280154 {#7359
        date: 2024-07-29 19:09:14.0 UTC (+00:00)
      }
      #updatedAt: DateTime @1722280649 {#7313
        date: 2024-07-29 19:17:29.0 UTC (+00:00)
      }
      #enabled: true
      #translations: Doctrine\ORM\PersistentCollection {#7338 …}
      #translationsCache: [
        "pt_BR" => Sylius\Component\Product\Model\ProductVariantTranslation {#13511
          #locale: "pt_BR"
          #translatable: Sylius\Component\Core\Model\ProductVariant {#7041}
          #id: 230
          #name: "Silver"
        }
      ]
      #currentLocale: "pt_BR"
      #currentTranslation: null
      #fallbackLocale: "en_US"
      #version: 2
      #onHold: 1
      #onHand: 10
      #tracked: true
      #weight: 0.0
      #width: 0.0
      #height: 0.0
      #depth: 0.0
      #taxCategory: null
      #shippingCategory: null
      #channelPricings: Doctrine\ORM\PersistentCollection {#7061 …}
      #shippingRequired: true
      #images: Doctrine\ORM\PersistentCollection {#7437 …}
    }
    #productName: null
    #variantName: null
  }
}
View Format same as normalized format

Submitted Data

This form was not submitted.

Passed Options

Option Passed Value Resolved Value
data
Sylius\Bundle\OrderBundle\Controller\AddToCartCommand {#13550
  -cart: BitBag\OpenMarketplace\Component\Order\Entity\Order {#9427 …}
  -cartItem: BitBag\OpenMarketplace\Component\Order\Entity\OrderItem {#13397
    #id: null
    #order: null
    #quantity: 1
    #unitPrice: 0
    #originalUnitPrice: 0
    #total: 0
    #immutable: false
    #units: Doctrine\Common\Collections\ArrayCollection {#13562 …}
    #unitsTotal: 0
    #adjustments: Doctrine\Common\Collections\ArrayCollection {#13571 …}
    #adjustmentsTotal: 0
    #version: 1
    #variant: Sylius\Component\Core\Model\ProductVariant {#7041
      #id: 232
      #code: "SPOTSHOP-002-01-1"
      #product: BitBag\OpenMarketplace\Component\Product\Entity\Product {#7056
        #id: 237
        #code: "SPOTSHOP-002-1"
        #attributes: Doctrine\ORM\PersistentCollection {#4744 …}
        #variants: Doctrine\ORM\PersistentCollection {#7182
          #collection: Doctrine\Common\Collections\ArrayCollection {#7180 …}
          #initialized: true
          -snapshot: [ …4]
          -owner: BitBag\OpenMarketplace\Component\Product\Entity\Product {#7056}
          -association: [ …16]
          -em: Doctrine\ORM\EntityManager {#613 …}
          -backRefFieldName: "product"
          -typeClass: Symfony\Component\VarDumper\Caster\CutStub {#43470 …}
          -isDirty: false
        }
        #options: Doctrine\ORM\PersistentCollection {#7210 …}
        #associations: Doctrine\ORM\PersistentCollection {#7189 …}
        #createdAt: DateTime @1722280153 {#7032
          date: 2024-07-29 19:09:13.0 UTC (+00:00)
        }
        #updatedAt: null
        #enabled: true
        #translations: Doctrine\ORM\PersistentCollection {#7280 …}
        #translationsCache: [
          "pt_BR" => Sylius\Component\Core\Model\ProductTranslation {#7284
            #locale: "pt_BR"
            #translatable: BitBag\OpenMarketplace\Component\Product\Entity\Product {#7056}
            #id: 208
            #name: "iPhone 15 Pro Max"
            #slug: "iPhone_15_Pro_Max_1_SPOTSHOP-002-1_237"
            #description: "Where can I get some? There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable. If you are going to use a passage of Lorem Ipsum, you need to be sure there isn't anything embarrassing hidden in the middle of text. All the Lorem Ipsum generators on the Internet tend to repeat predefined chunks as necessary, making this the first true generator on the Internet. It uses a dictionary of over 200 Latin words, combined with a handful of model sentence structures, to generate Lorem Ipsum which looks reasonable. The generated Lorem Ipsum is therefore always free from repetition, injected humour, or non-characteristic words etc."
            #metaKeywords: null
            #metaDescription: null
            #shortDescription: null
          }
        ]
        #currentLocale: "pt_BR"
        #currentTranslation: null
        #fallbackLocale: "en_US"
        #variantSelectionMethod: "choice"
        #productTaxons: Doctrine\ORM\PersistentCollection {#7136 …}
        #channels: Doctrine\ORM\PersistentCollection {#7119 …}
        #mainTaxon: Proxies\__CG__\Sylius\Component\Core\Model\Taxon {#6357 …}
        #reviews: Doctrine\ORM\PersistentCollection {#7281 …}
        #averageRating: 0.0
        #images: Doctrine\ORM\PersistentCollection {#7036 …}
        #vendor: Proxies\__CG__\BitBag\OpenMarketplace\Component\Vendor\Entity\Vendor {#7087 …}
        #deleted: false
      }
      #optionValues: Doctrine\ORM\PersistentCollection {#7376 …}
      #position: 0
      #createdAt: DateTime @1722280154 {#7359
        date: 2024-07-29 19:09:14.0 UTC (+00:00)
      }
      #updatedAt: DateTime @1722280649 {#7313
        date: 2024-07-29 19:17:29.0 UTC (+00:00)
      }
      #enabled: true
      #translations: Doctrine\ORM\PersistentCollection {#7338 …}
      #translationsCache: [
        "pt_BR" => Sylius\Component\Product\Model\ProductVariantTranslation {#13511
          #locale: "pt_BR"
          #translatable: Sylius\Component\Core\Model\ProductVariant {#7041}
          #id: 230
          #name: "Silver"
        }
      ]
      #currentLocale: "pt_BR"
      #currentTranslation: null
      #fallbackLocale: "en_US"
      #version: 2
      #onHold: 1
      #onHand: 10
      #tracked: true
      #weight: 0.0
      #width: 0.0
      #height: 0.0
      #depth: 0.0
      #taxCategory: null
      #shippingCategory: null
      #channelPricings: Doctrine\ORM\PersistentCollection {#7061 …}
      #shippingRequired: true
      #images: Doctrine\ORM\PersistentCollection {#7437 …}
    }
    #productName: null
    #variantName: null
  }
}
same as passed value
product
BitBag\OpenMarketplace\Component\Product\Entity\Product {#7056
  #id: 237
  #code: "SPOTSHOP-002-1"
  #attributes: Doctrine\ORM\PersistentCollection {#4744 …}
  #variants: Doctrine\ORM\PersistentCollection {#7182
    #collection: Doctrine\Common\Collections\ArrayCollection {#7180 …}
    #initialized: true
    -snapshot: [ …4]
    -owner: BitBag\OpenMarketplace\Component\Product\Entity\Product {#7056}
    -association: [ …16]
    -em: Doctrine\ORM\EntityManager {#613 …}
    -backRefFieldName: "product"
    -typeClass: Symfony\Component\VarDumper\Caster\CutStub {#43470 …}
    -isDirty: false
  }
  #options: Doctrine\ORM\PersistentCollection {#7210 …}
  #associations: Doctrine\ORM\PersistentCollection {#7189 …}
  #createdAt: DateTime @1722280153 {#7032
    date: 2024-07-29 19:09:13.0 UTC (+00:00)
  }
  #updatedAt: null
  #enabled: true
  #translations: Doctrine\ORM\PersistentCollection {#7280 …}
  #translationsCache: [
    "pt_BR" => Sylius\Component\Core\Model\ProductTranslation {#7284
      #locale: "pt_BR"
      #translatable: BitBag\OpenMarketplace\Component\Product\Entity\Product {#7056}
      #id: 208
      #name: "iPhone 15 Pro Max"
      #slug: "iPhone_15_Pro_Max_1_SPOTSHOP-002-1_237"
      #description: "Where can I get some? There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable. If you are going to use a passage of Lorem Ipsum, you need to be sure there isn't anything embarrassing hidden in the middle of text. All the Lorem Ipsum generators on the Internet tend to repeat predefined chunks as necessary, making this the first true generator on the Internet. It uses a dictionary of over 200 Latin words, combined with a handful of model sentence structures, to generate Lorem Ipsum which looks reasonable. The generated Lorem Ipsum is therefore always free from repetition, injected humour, or non-characteristic words etc."
      #metaKeywords: null
      #metaDescription: null
      #shortDescription: null
    }
  ]
  #currentLocale: "pt_BR"
  #currentTranslation: null
  #fallbackLocale: "en_US"
  #variantSelectionMethod: "choice"
  #productTaxons: Doctrine\ORM\PersistentCollection {#7136 …}
  #channels: Doctrine\ORM\PersistentCollection {#7119 …}
  #mainTaxon: Proxies\__CG__\Sylius\Component\Core\Model\Taxon {#6357 …}
  #reviews: Doctrine\ORM\PersistentCollection {#7281 …}
  #averageRating: 0.0
  #images: Doctrine\ORM\PersistentCollection {#7036 …}
  #vendor: Proxies\__CG__\BitBag\OpenMarketplace\Component\Vendor\Entity\Vendor {#7087 …}
  #deleted: false
}
same as passed value

Resolved Options

View Variables