Forms

  • sylius_add_to_cart
    • cartItem
    • _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 {#9580
  -cart: App\Entity\Order\Order {#8310 …}
  -cartItem: App\Entity\Order\OrderItem {#9349
    #version: 1
    #variant: App\Entity\Product\ProductVariant {#9455 …}
    #productName: null
    #variantName: null
    #id: null
    #order: null
    #quantity: 1
    #unitPrice: 0
    #originalUnitPrice: 0
    #total: 0
    #immutable: false
    #units: Doctrine\Common\Collections\ArrayCollection {#9346 …}
    #unitsTotal: 0
    #adjustments: Doctrine\Common\Collections\ArrayCollection {#9347 …}
    #adjustmentsTotal: 0
  }
}
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 {#9580
  -cart: App\Entity\Order\Order {#8310 …}
  -cartItem: App\Entity\Order\OrderItem {#9349
    #version: 1
    #variant: App\Entity\Product\ProductVariant {#9455 …}
    #productName: null
    #variantName: null
    #id: null
    #order: null
    #quantity: 1
    #unitPrice: 0
    #originalUnitPrice: 0
    #total: 0
    #immutable: false
    #units: Doctrine\Common\Collections\ArrayCollection {#9346 …}
    #unitsTotal: 0
    #adjustments: Doctrine\Common\Collections\ArrayCollection {#9347 …}
    #adjustmentsTotal: 0
  }
}
same as passed value
product
App\Entity\Product\Product {#8375
  +awsPackLink: "https://conteuse-max.s3.eu-west-3.amazonaws.com/main-packs/3127020503643.max"
  -awsPackFileSize: "16.18"
  +packSampleArray: null
  -packSamples: Doctrine\ORM\PersistentCollection {#8393 …}
  -searchEnabled: true
  -season: null
  -offeredOnly: false
  #variantSelectionMethod: "choice"
  #productTaxons: Doctrine\ORM\PersistentCollection {#8586 …}
  #channels: Doctrine\ORM\PersistentCollection {#8638 …}
  #mainTaxon: Proxies\__CG__\App\Entity\Taxonomy\Taxon {#8431 …}
  #reviews: Doctrine\ORM\PersistentCollection {#9260 …}
  #averageRating: 0.0
  #images: Doctrine\ORM\PersistentCollection {#8650 …}
  #id: 8
  #code: "3127020503643"
  #attributes: Doctrine\ORM\PersistentCollection {#8853 …}
  #variants: Doctrine\ORM\PersistentCollection {#8911 …}
  #options: Doctrine\ORM\PersistentCollection {#9161 …}
  #associations: Doctrine\ORM\PersistentCollection {#9137 …}
  #createdAt: DateTime @1686028476 {#8379
    date: 2023-06-06 07:14:36.0 Europe/Paris (+02:00)
  }
  #updatedAt: DateTime @1790502991 {#8378
    date: 2026-09-27 11:56:31.0 Europe/Paris (+02:00)
  }
  #enabled: true
  #translations: Doctrine\ORM\PersistentCollection {#8476 …}
  #translationsCache: []
  #currentLocale: "fr"
  #currentTranslation: null
  #fallbackLocale: "fr"
  #giftCard: false
  #seo: Proxies\__CG__\JoppeDc\SyliusBetterSeoPlugin\Entity\Seo {#8467 …}
}
same as passed value

Resolved Options

View Variables