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 {#9421
  -cart: App\Entity\Order\Order {#8161 …}
  -cartItem: App\Entity\Order\OrderItem {#9200
    #version: 1
    #variant: App\Entity\Product\ProductVariant {#9306 …}
    #productName: null
    #variantName: null
    #id: null
    #order: null
    #quantity: 1
    #unitPrice: 0
    #originalUnitPrice: 0
    #total: 0
    #immutable: false
    #units: Doctrine\Common\Collections\ArrayCollection {#9197 …}
    #unitsTotal: 0
    #adjustments: Doctrine\Common\Collections\ArrayCollection {#9198 …}
    #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 {#9421
  -cart: App\Entity\Order\Order {#8161 …}
  -cartItem: App\Entity\Order\OrderItem {#9200
    #version: 1
    #variant: App\Entity\Product\ProductVariant {#9306 …}
    #productName: null
    #variantName: null
    #id: null
    #order: null
    #quantity: 1
    #unitPrice: 0
    #originalUnitPrice: 0
    #total: 0
    #immutable: false
    #units: Doctrine\Common\Collections\ArrayCollection {#9197 …}
    #unitsTotal: 0
    #adjustments: Doctrine\Common\Collections\ArrayCollection {#9198 …}
    #adjustmentsTotal: 0
  }
}
same as passed value
product
App\Entity\Product\Product {#8226
  +awsPackLink: "https://conteuse-max.s3.eu-west-3.amazonaws.com/main-packs/3127020508297.max"
  -awsPackFileSize: "16.8"
  +packSampleArray: null
  -packSamples: Doctrine\ORM\PersistentCollection {#8244 …}
  -searchEnabled: true
  -season: null
  #variantSelectionMethod: "choice"
  #productTaxons: Doctrine\ORM\PersistentCollection {#8437 …}
  #channels: Doctrine\ORM\PersistentCollection {#8489 …}
  #mainTaxon: Proxies\__CG__\App\Entity\Taxonomy\Taxon {#8282 …}
  #reviews: Doctrine\ORM\PersistentCollection {#9111 …}
  #averageRating: 0.0
  #images: Doctrine\ORM\PersistentCollection {#8501 …}
  #id: 107
  #code: "3127020508297"
  #attributes: Doctrine\ORM\PersistentCollection {#8704 …}
  #variants: Doctrine\ORM\PersistentCollection {#8762 …}
  #options: Doctrine\ORM\PersistentCollection {#9012 …}
  #associations: Doctrine\ORM\PersistentCollection {#8988 …}
  #createdAt: DateTime @1725375105 {#8230
    date: 2024-09-03 16:51:45.0 Europe/Paris (+02:00)
  }
  #updatedAt: DateTime @1725376606 {#8229
    date: 2024-09-03 17:16:46.0 Europe/Paris (+02:00)
  }
  #enabled: true
  #translations: Doctrine\ORM\PersistentCollection {#8327 …}
  #translationsCache: []
  #currentLocale: "fr"
  #currentTranslation: null
  #fallbackLocale: "fr"
  #giftCard: false
  #seo: Proxies\__CG__\JoppeDc\SyliusBetterSeoPlugin\Entity\Seo {#8318 …}
}
same as passed value

Resolved Options

View Variables