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 {#19196
  -cart: App\Entity\Order\Order {#8072 …}
  -cartItem: App\Entity\Order\OrderItem {#19169
    #vendor: null
    #version: 1
    #variant: App\Entity\Product\ProductVariant {#18999 …}
    #productName: null
    #variantName: null
    #id: null
    #order: null
    #quantity: 1
    #unitPrice: 0
    #total: 0
    #immutable: false
    #units: Doctrine\Common\Collections\ArrayCollection {#19198 …}
    #unitsTotal: 0
    #adjustments: Doctrine\Common\Collections\ArrayCollection {#19199 …}
    #adjustmentsTotal: 0
    #productBundleOrderItems: Doctrine\Common\Collections\ArrayCollection {#19195 …}
  }
}
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 {#19196
  -cart: App\Entity\Order\Order {#8072 …}
  -cartItem: App\Entity\Order\OrderItem {#19169
    #vendor: null
    #version: 1
    #variant: App\Entity\Product\ProductVariant {#18999 …}
    #productName: null
    #variantName: null
    #id: null
    #order: null
    #quantity: 1
    #unitPrice: 0
    #total: 0
    #immutable: false
    #units: Doctrine\Common\Collections\ArrayCollection {#19198 …}
    #unitsTotal: 0
    #adjustments: Doctrine\Common\Collections\ArrayCollection {#19199 …}
    #adjustmentsTotal: 0
    #productBundleOrderItems: Doctrine\Common\Collections\ArrayCollection {#19195 …}
  }
}
same as passed value
product
App\Entity\Product\Product {#6932
  #variantSelectionMethod: "choice"
  #productTaxons: Doctrine\ORM\PersistentCollection {#6957 …}
  #channels: Doctrine\ORM\PersistentCollection {#6934 …}
  #mainTaxon: Proxies\__CG__\App\Entity\Taxonomy\Taxon {#6933 …}
  #reviews: Doctrine\ORM\PersistentCollection {#6951 …}
  #averageRating: 0.0
  #images: Doctrine\ORM\PersistentCollection {#6937 …}
  #id: 48
  #code: "SUPPORT-MEDAILLE"
  #attributes: Doctrine\ORM\PersistentCollection {#6943 …}
  #variants: Doctrine\ORM\PersistentCollection {#6939 …}
  #options: Doctrine\ORM\PersistentCollection {#6949 …}
  #associations: Doctrine\ORM\PersistentCollection {#6947 …}
  #createdAt: DateTime @1690900401 {#6930
    date: 2023-08-01 16:33:21.0 Europe/Paris (+02:00)
  }
  #updatedAt: DateTime @1690900402 {#6929
    date: 2023-08-01 16:33:22.0 Europe/Paris (+02:00)
  }
  #enabled: true
  #translations: Doctrine\ORM\PersistentCollection {#6954 …}
  #translationsCache: [
    "fr_FR" => App\Entity\Product\ProductTranslation {#6955
      #shortDescription: """
        <p>Support en plexiglas pour pr&eacute;sentation originale de votre m&eacute;daille FNTV.</p>\r\n
        \r\n
        <p>Pr&eacute;sentation sur un bureau, une &eacute;tag&egrave;re ou m&ecirc;me dans une vitrine.</p>
        """
      #id: 48
      #name: "Support Altuglass"
      #slug: "support-altuglass"
      #description: """
        <p>Dimensions :&nbsp;</p>\r\n
        \r\n
        <ul>\r\n
        \t<li>Largeur : 10 cm</li>\r\n
        \t<li>Hauteur : 12 cm</li>\r\n
        \t<li>Profondeur : 3.5 cm</li>\r\n
        </ul>\r\n
        \r\n
        <p>La fa&ccedil;ade du support se pivote afin de glisser la m&eacute;daille (diam&egrave;tre 60mm, &eacute;paisseur 5mm)<br />\r\n
        Tenue de la m&eacute;daille par 2 plots.</p>
        """
      #metaKeywords: null
      #metaDescription: null
      #locale: "fr_FR"
      #translatable: App\Entity\Product\Product {#6932}
    }
  ]
  #currentLocale: "fr_FR"
  #currentTranslation: null
  #fallbackLocale: "fr_FR"
  #productBundle: null
  #vendor: Proxies\__CG__\App\Entity\Vendor\Vendor {#6845 …}
}
same as passed value

Resolved Options

View Variables