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 {#18137
  -cart: App\Entity\Order\Order {#8107 …}
  -cartItem: App\Entity\Order\OrderItem {#18110
    #vendor: null
    #version: 1
    #variant: App\Entity\Product\ProductVariant {#17940 …}
    #productName: null
    #variantName: null
    #id: null
    #order: null
    #quantity: 1
    #unitPrice: 0
    #total: 0
    #immutable: false
    #units: Doctrine\Common\Collections\ArrayCollection {#18139 …}
    #unitsTotal: 0
    #adjustments: Doctrine\Common\Collections\ArrayCollection {#18140 …}
    #adjustmentsTotal: 0
    #productBundleOrderItems: Doctrine\Common\Collections\ArrayCollection {#18136 …}
  }
}
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 {#18137
  -cart: App\Entity\Order\Order {#8107 …}
  -cartItem: App\Entity\Order\OrderItem {#18110
    #vendor: null
    #version: 1
    #variant: App\Entity\Product\ProductVariant {#17940 …}
    #productName: null
    #variantName: null
    #id: null
    #order: null
    #quantity: 1
    #unitPrice: 0
    #total: 0
    #immutable: false
    #units: Doctrine\Common\Collections\ArrayCollection {#18139 …}
    #unitsTotal: 0
    #adjustments: Doctrine\Common\Collections\ArrayCollection {#18140 …}
    #adjustmentsTotal: 0
    #productBundleOrderItems: Doctrine\Common\Collections\ArrayCollection {#18136 …}
  }
}
same as passed value
product
App\Entity\Product\Product {#6875
  #variantSelectionMethod: "choice"
  #productTaxons: Doctrine\ORM\PersistentCollection {#6899 …}
  #channels: Doctrine\ORM\PersistentCollection {#6876 …}
  #mainTaxon: Proxies\__CG__\App\Entity\Taxonomy\Taxon {#6783 …}
  #reviews: Doctrine\ORM\PersistentCollection {#6893 …}
  #averageRating: 0.0
  #images: Doctrine\ORM\PersistentCollection {#6879 …}
  #id: 50
  #code: "USB3-25-APL3"
  #attributes: Doctrine\ORM\PersistentCollection {#6885 …}
  #variants: Doctrine\ORM\PersistentCollection {#6881 …}
  #options: Doctrine\ORM\PersistentCollection {#6891 …}
  #associations: Doctrine\ORM\PersistentCollection {#6889 …}
  #createdAt: DateTime @1690964198 {#6873
    date: 2023-08-02 10:16:38.0 Europe/Paris (+02:00)
  }
  #updatedAt: DateTime @1690964199 {#6872
    date: 2023-08-02 10:16:39.0 Europe/Paris (+02:00)
  }
  #enabled: true
  #translations: Doctrine\ORM\PersistentCollection {#6896 …}
  #translationsCache: [
    "fr_FR" => App\Entity\Product\ProductTranslation {#6897
      #shortDescription: """
        <p>Prise USB &agrave; plaquer pour autocars et autobus. Charge avec deux sorties USB 3.0 ind&eacute;pendantes<br />\r\n
        12/24 VDC - 2.5 A. USB type A - 2 voies - 3.0</p>
        """
      #id: 50
      #name: "Prise USB autocars à plaquer"
      #slug: "prise-usb-autocars-a-plaquer"
      #description: """
        <ul>\r\n
        \t<li>USB type A - 2 voies - 3.0</li>\r\n
        \t<li>Eclairage de mise sous tension par LED bleu</li>\r\n
        \t<li>Alimentation directe en 12/24 Vdc</li>\r\n
        \t<li>Courant disponible&nbsp;: 2.5 A par sortie USB</li>\r\n
        \t<li>Prise prot&eacute;g&eacute;e&nbsp;:<br />\r\n
        \t&nbsp;- en entr&eacute;e contre les inversions de polarit&eacute;<br />\r\n
        \t&nbsp;- en entr&eacute;e contre les surtensions<br />\r\n
        \t&nbsp;- en sortie contre les courts-circuits</li>\r\n
        \t<li>Compos&eacute;e d&rsquo;un corps r&eacute;sistant, fabriqu&eacute; en polycarbonate (PC)&nbsp;disponible en diff&eacute;rentes couleurs (&agrave; la demande)</li>\r\n
        \t<li>L&rsquo;entraxe de fixation est de 96 mm (+/- 0.5)</li>\r\n
        \t<li>Dimensions de la prise USB&nbsp;: 17.8 mm x 115 mm x 45 mm</li>\r\n
        \t<li>R&eacute;sister &agrave; des temp&eacute;ratures d&rsquo;utilisation allant de -30&deg;C &agrave; +70&deg;C.</li>\r\n
        \t<li>Vendue avec un connecteur Mini Fit.</li>\r\n
        </ul>
        """
      #metaKeywords: null
      #metaDescription: null
      #locale: "fr_FR"
      #translatable: App\Entity\Product\Product {#6875}
    }
  ]
  #currentLocale: "fr_FR"
  #currentTranslation: null
  #fallbackLocale: "fr_FR"
  #productBundle: null
  #vendor: Proxies\__CG__\App\Entity\Vendor\Vendor {#6784 …}
}
same as passed value

Resolved Options

View Variables