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 {#20551
  -cart: App\Entity\Order\Order {#8108 …}
  -cartItem: App\Entity\Order\OrderItem {#20524
    #vendor: null
    #version: 1
    #variant: App\Entity\Product\ProductVariant {#20354 …}
    #productName: null
    #variantName: null
    #id: null
    #order: null
    #quantity: 1
    #unitPrice: 0
    #total: 0
    #immutable: false
    #units: Doctrine\Common\Collections\ArrayCollection {#20553 …}
    #unitsTotal: 0
    #adjustments: Doctrine\Common\Collections\ArrayCollection {#20554 …}
    #adjustmentsTotal: 0
    #productBundleOrderItems: Doctrine\Common\Collections\ArrayCollection {#20550 …}
  }
}
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 {#20551
  -cart: App\Entity\Order\Order {#8108 …}
  -cartItem: App\Entity\Order\OrderItem {#20524
    #vendor: null
    #version: 1
    #variant: App\Entity\Product\ProductVariant {#20354 …}
    #productName: null
    #variantName: null
    #id: null
    #order: null
    #quantity: 1
    #unitPrice: 0
    #total: 0
    #immutable: false
    #units: Doctrine\Common\Collections\ArrayCollection {#20553 …}
    #unitsTotal: 0
    #adjustments: Doctrine\Common\Collections\ArrayCollection {#20554 …}
    #adjustmentsTotal: 0
    #productBundleOrderItems: Doctrine\Common\Collections\ArrayCollection {#20550 …}
  }
}
same as passed value
product
App\Entity\Product\Product {#6988
  #variantSelectionMethod: "choice"
  #productTaxons: Doctrine\ORM\PersistentCollection {#7012 …}
  #channels: Doctrine\ORM\PersistentCollection {#6989 …}
  #mainTaxon: Proxies\__CG__\App\Entity\Taxonomy\Taxon {#6321 …}
  #reviews: Doctrine\ORM\PersistentCollection {#7006 …}
  #averageRating: 0.0
  #images: Doctrine\ORM\PersistentCollection {#6992 …}
  #id: 15
  #code: "ELECTRODES-ENFANTS-M5072A"
  #attributes: Doctrine\ORM\PersistentCollection {#6998 …}
  #variants: Doctrine\ORM\PersistentCollection {#6994 …}
  #options: Doctrine\ORM\PersistentCollection {#7004 …}
  #associations: Doctrine\ORM\PersistentCollection {#7002 …}
  #createdAt: DateTime @1689933762 {#6986
    date: 2023-07-21 12:02:42.0 Europe/Paris (+02:00)
  }
  #updatedAt: DateTime @1689944807 {#6987
    date: 2023-07-21 15:06:47.0 Europe/Paris (+02:00)
  }
  #enabled: true
  #translations: Doctrine\ORM\PersistentCollection {#7009 …}
  #translationsCache: [
    "fr_FR" => App\Entity\Product\ProductTranslation {#7010
      #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 {#6988}
    }
  ]
  #currentLocale: "fr_FR"
  #currentTranslation: null
  #fallbackLocale: "fr_FR"
  #productBundle: null
  #vendor: Proxies\__CG__\App\Entity\Vendor\Vendor {#6322 …}
}
same as passed value

Resolved Options

View Variables