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 {#15215
  -cart: App\Entity\Order\Order {#7895 …}
  -cartItem: App\Entity\Order\OrderItem {#15210
    #vendor: null
    #version: 1
    #variant: App\Entity\Product\ProductVariant {#15009 …}
    #productName: null
    #variantName: null
    #id: null
    #order: null
    #quantity: 1
    #unitPrice: 0
    #total: 0
    #immutable: false
    #units: Doctrine\Common\Collections\ArrayCollection {#15239 …}
    #unitsTotal: 0
    #adjustments: Doctrine\Common\Collections\ArrayCollection {#15240 …}
    #adjustmentsTotal: 0
    #productBundleOrderItems: Doctrine\Common\Collections\ArrayCollection {#15236 …}
  }
}
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 {#15215
  -cart: App\Entity\Order\Order {#7895 …}
  -cartItem: App\Entity\Order\OrderItem {#15210
    #vendor: null
    #version: 1
    #variant: App\Entity\Product\ProductVariant {#15009 …}
    #productName: null
    #variantName: null
    #id: null
    #order: null
    #quantity: 1
    #unitPrice: 0
    #total: 0
    #immutable: false
    #units: Doctrine\Common\Collections\ArrayCollection {#15239 …}
    #unitsTotal: 0
    #adjustments: Doctrine\Common\Collections\ArrayCollection {#15240 …}
    #adjustmentsTotal: 0
    #productBundleOrderItems: Doctrine\Common\Collections\ArrayCollection {#15236 …}
  }
}
same as passed value
product
App\Entity\Product\Product {#6237
  #variantSelectionMethod: "choice"
  #productTaxons: Doctrine\ORM\PersistentCollection {#6777 …}
  #channels: Doctrine\ORM\PersistentCollection {#6263 …}
  #mainTaxon: Proxies\__CG__\App\Entity\Taxonomy\Taxon {#6331 …}
  #reviews: Doctrine\ORM\PersistentCollection {#6771 …}
  #averageRating: 0.0
  #images: Doctrine\ORM\PersistentCollection {#6276 …}
  #id: 14
  #code: "BATTERIE-M5070A"
  #attributes: Doctrine\ORM\PersistentCollection {#6430 …}
  #variants: Doctrine\ORM\PersistentCollection {#6483 …}
  #options: Doctrine\ORM\PersistentCollection {#6626 …}
  #associations: Doctrine\ORM\PersistentCollection {#6586 …}
  #createdAt: DateTime @1689933133 {#6180
    date: 2023-07-21 11:52:13.0 Europe/Paris (+02:00)
  }
  #updatedAt: DateTime @1689933133 {#6294
    date: 2023-07-21 11:52:13.0 Europe/Paris (+02:00)
  }
  #enabled: true
  #translations: Doctrine\ORM\PersistentCollection {#6772 …}
  #translationsCache: [
    "fr_FR" => App\Entity\Product\ProductTranslation {#6774
      #shortDescription: """
        <ul>\r\n
        \t<li>Type : 9 Vcc, 4.2 Ah, dioxyde de mangan&egrave;se-lithium</li>\r\n
        \t<li>Mise en place facile</li>\r\n
        \t<li>Autonomie : 200 chocs ou 4 ans environ</li>\r\n
        \t<li>Recyclable</li>\r\n
        </ul>
        """
      #id: 14
      #name: "Pile longue durée pour défibrillateur HeartStart HS1"
      #slug: "pile-longue-duree-pour-defibrillateur-heartstart-hs1"
      #description: """
        <p>Les d&eacute;fibrillateurs HeartStart HS1 fonctionnent avec une pile au Lithium- dioxyde de mangan&egrave;se non rechargeable, dont la dur&eacute;e de vie est de 4 ans environ en fonctionnement ou 5 ans si non install&eacute;e dans l&#39;appareil.</p>\r\n
        \r\n
        <p>Autonomie : 200 chocs ou 4 heures d&#39;utilisation si la pile est ins&eacute;r&eacute;e avant la date limite d&#39;installation, l&#39;appareil stock&eacute; dans des conditions standards, en veille (non utilis&eacute;) et un seul test d&#39;insertion de pile ayant &eacute;t&eacute; effectu&eacute;.</p>\r\n
        \r\n
        <p>La pile pourra &ecirc;tre mise au r&eacute;but dans un container pour le recyclage des piles.</p>
        """
      #metaKeywords: null
      #metaDescription: null
      #locale: "fr_FR"
      #translatable: App\Entity\Product\Product {#6237}
    }
  ]
  #currentLocale: "fr_FR"
  #currentTranslation: null
  #fallbackLocale: "fr_FR"
  #productBundle: null
  #vendor: Proxies\__CG__\App\Entity\Vendor\Vendor {#6330 …}
}
same as passed value

Resolved Options

View Variables