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 {#17974
  -cart: App\Entity\Order\Order {#8108 …}
  -cartItem: App\Entity\Order\OrderItem {#17947
    #vendor: null
    #version: 1
    #variant: App\Entity\Product\ProductVariant {#17777 …}
    #productName: null
    #variantName: null
    #id: null
    #order: null
    #quantity: 1
    #unitPrice: 0
    #total: 0
    #immutable: false
    #units: Doctrine\Common\Collections\ArrayCollection {#17976 …}
    #unitsTotal: 0
    #adjustments: Doctrine\Common\Collections\ArrayCollection {#17977 …}
    #adjustmentsTotal: 0
    #productBundleOrderItems: Doctrine\Common\Collections\ArrayCollection {#17973 …}
  }
}
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 {#17974
  -cart: App\Entity\Order\Order {#8108 …}
  -cartItem: App\Entity\Order\OrderItem {#17947
    #vendor: null
    #version: 1
    #variant: App\Entity\Product\ProductVariant {#17777 …}
    #productName: null
    #variantName: null
    #id: null
    #order: null
    #quantity: 1
    #unitPrice: 0
    #total: 0
    #immutable: false
    #units: Doctrine\Common\Collections\ArrayCollection {#17976 …}
    #unitsTotal: 0
    #adjustments: Doctrine\Common\Collections\ArrayCollection {#17977 …}
    #adjustmentsTotal: 0
    #productBundleOrderItems: Doctrine\Common\Collections\ArrayCollection {#17973 …}
  }
}
same as passed value
product
App\Entity\Product\Product {#6876
  #variantSelectionMethod: "choice"
  #productTaxons: Doctrine\ORM\PersistentCollection {#6902 …}
  #channels: Doctrine\ORM\PersistentCollection {#6879 …}
  #mainTaxon: Proxies\__CG__\App\Entity\Taxonomy\Taxon {#6877 …}
  #reviews: Doctrine\ORM\PersistentCollection {#6896 …}
  #averageRating: 0.0
  #images: Doctrine\ORM\PersistentCollection {#6882 …}
  #id: 14
  #code: "BATTERIE-M5070A"
  #attributes: Doctrine\ORM\PersistentCollection {#6888 …}
  #variants: Doctrine\ORM\PersistentCollection {#6884 …}
  #options: Doctrine\ORM\PersistentCollection {#6894 …}
  #associations: Doctrine\ORM\PersistentCollection {#6892 …}
  #createdAt: DateTime @1689933133 {#6874
    date: 2023-07-21 11:52:13.0 Europe/Paris (+02:00)
  }
  #updatedAt: DateTime @1689933133 {#6873
    date: 2023-07-21 11:52:13.0 Europe/Paris (+02:00)
  }
  #enabled: true
  #translations: Doctrine\ORM\PersistentCollection {#6899 …}
  #translationsCache: [
    "fr_FR" => App\Entity\Product\ProductTranslation {#6900
      #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 {#6876}
    }
  ]
  #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