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 {#18771
  -cart: App\Entity\Order\Order {#8108 …}
  -cartItem: App\Entity\Order\OrderItem {#18744
    #vendor: null
    #version: 1
    #variant: App\Entity\Product\ProductVariant {#18574 …}
    #productName: null
    #variantName: null
    #id: null
    #order: null
    #quantity: 1
    #unitPrice: 0
    #total: 0
    #immutable: false
    #units: Doctrine\Common\Collections\ArrayCollection {#18773 …}
    #unitsTotal: 0
    #adjustments: Doctrine\Common\Collections\ArrayCollection {#18774 …}
    #adjustmentsTotal: 0
    #productBundleOrderItems: Doctrine\Common\Collections\ArrayCollection {#18770 …}
  }
}
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 {#18771
  -cart: App\Entity\Order\Order {#8108 …}
  -cartItem: App\Entity\Order\OrderItem {#18744
    #vendor: null
    #version: 1
    #variant: App\Entity\Product\ProductVariant {#18574 …}
    #productName: null
    #variantName: null
    #id: null
    #order: null
    #quantity: 1
    #unitPrice: 0
    #total: 0
    #immutable: false
    #units: Doctrine\Common\Collections\ArrayCollection {#18773 …}
    #unitsTotal: 0
    #adjustments: Doctrine\Common\Collections\ArrayCollection {#18774 …}
    #adjustmentsTotal: 0
    #productBundleOrderItems: Doctrine\Common\Collections\ArrayCollection {#18770 …}
  }
}
same as passed value
product
App\Entity\Product\Product {#6907
  #variantSelectionMethod: "choice"
  #productTaxons: Doctrine\ORM\PersistentCollection {#6931 …}
  #channels: Doctrine\ORM\PersistentCollection {#6908 …}
  #mainTaxon: Proxies\__CG__\App\Entity\Taxonomy\Taxon {#6877 …}
  #reviews: Doctrine\ORM\PersistentCollection {#6925 …}
  #averageRating: 0.0
  #images: Doctrine\ORM\PersistentCollection {#6911 …}
  #id: 15
  #code: "ELECTRODES-ENFANTS-M5072A"
  #attributes: Doctrine\ORM\PersistentCollection {#6917 …}
  #variants: Doctrine\ORM\PersistentCollection {#6913 …}
  #options: Doctrine\ORM\PersistentCollection {#6923 …}
  #associations: Doctrine\ORM\PersistentCollection {#6921 …}
  #createdAt: DateTime @1689933762 {#6905
    date: 2023-07-21 12:02:42.0 Europe/Paris (+02:00)
  }
  #updatedAt: DateTime @1689944807 {#6904
    date: 2023-07-21 15:06:47.0 Europe/Paris (+02:00)
  }
  #enabled: true
  #translations: Doctrine\ORM\PersistentCollection {#6928 …}
  #translationsCache: [
    "fr_FR" => App\Entity\Product\ProductTranslation {#6929
      #shortDescription: """
        <ul>\r\n
        \t<li>Manipulation facile</li>\r\n
        \t<li>Convient aux victimes pesant moins de 25kg ou ag&eacute;es de moins de 8 ans.</li>\r\n
        \t<li>Adh&eacute;sives et jetables</li>\r\n
        \t<li>Dur&eacute;e de vie 2 ans</li>\r\n
        </ul>
        """
      #id: 15
      #name: "Paire d'électrodes enfant pour défibrillateur HeartStart HS1"
      #slug: "paire-d-electrodes-enfant"
      #description: """
        <p>Pour la d&eacute;fibrillation des nourrissons et des enfants &acirc;g&eacute;s de moins de 8 ans ou dont le poids est inf&eacute;rieur &agrave; 25Kg, vous devez utiliser les &eacute;lectrodes p&eacute;diatriques HeartStart SMART.</p>\r\n
        \r\n
        <p>Lorsque ces &eacute;lectrodes sont connect&eacute;es au d&eacute;fibrillateur, celui-ci limite le niveau d&#39;&eacute;nergie &agrave; 50 joules (J) au lieu de 150J, valeur plus appropri&eacute;e pour traiter les jeunes enfants. La cartouche p&eacute;diatrique est facile &agrave; identifier gr&acirc;ce &agrave; l&#39;indication de poids du patient et l&#39;ic&ocirc;ne en forme d&#39;ourson.</p>\r\n
        \r\n
        <p>A&nbsp;remplacer tous les deux ans.</p>\r\n
        \r\n
        <p>Les &eacute;lectodes ne sont pas recyclables et pourront &ecirc;tre jet&eacute;es dans une poubelle de type &quot;m&eacute;nager&quot;.</p>
        """
      #metaKeywords: null
      #metaDescription: null
      #locale: "fr_FR"
      #translatable: App\Entity\Product\Product {#6907}
    }
  ]
  #currentLocale: "fr_FR"
  #currentTranslation: null
  #fallbackLocale: "fr_FR"
  #productBundle: null
  #vendor: Proxies\__CG__\App\Entity\Vendor\Vendor {#6878 …}
}
same as passed value

Resolved Options

View Variables