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 {#15310
  -cart: App\Entity\Order\Order {#8009 …}
  -cartItem: App\Entity\Order\OrderItem {#15305
    #vendor: null
    #version: 1
    #variant: App\Entity\Product\ProductVariant {#15136 …}
    #productName: null
    #variantName: null
    #id: null
    #order: null
    #quantity: 1
    #unitPrice: 0
    #total: 0
    #immutable: false
    #units: Doctrine\Common\Collections\ArrayCollection {#15334 …}
    #unitsTotal: 0
    #adjustments: Doctrine\Common\Collections\ArrayCollection {#15335 …}
    #adjustmentsTotal: 0
    #productBundleOrderItems: Doctrine\Common\Collections\ArrayCollection {#15331 …}
  }
}
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 {#15310
  -cart: App\Entity\Order\Order {#8009 …}
  -cartItem: App\Entity\Order\OrderItem {#15305
    #vendor: null
    #version: 1
    #variant: App\Entity\Product\ProductVariant {#15136 …}
    #productName: null
    #variantName: null
    #id: null
    #order: null
    #quantity: 1
    #unitPrice: 0
    #total: 0
    #immutable: false
    #units: Doctrine\Common\Collections\ArrayCollection {#15334 …}
    #unitsTotal: 0
    #adjustments: Doctrine\Common\Collections\ArrayCollection {#15335 …}
    #adjustmentsTotal: 0
    #productBundleOrderItems: Doctrine\Common\Collections\ArrayCollection {#15331 …}
  }
}
same as passed value
product
App\Entity\Product\Product {#6248
  #variantSelectionMethod: "choice"
  #productTaxons: Doctrine\ORM\PersistentCollection {#6775 …}
  #channels: Doctrine\ORM\PersistentCollection {#6026 …}
  #mainTaxon: App\Entity\Taxonomy\Taxon {#6113 …}
  #reviews: Doctrine\ORM\PersistentCollection {#6769 …}
  #averageRating: 0.0
  #images: Doctrine\ORM\PersistentCollection {#6205 …}
  #id: 18
  #code: "TROUSSE-1SECOURS-DEFIBRILLATEUR"
  #attributes: Doctrine\ORM\PersistentCollection {#6426 …}
  #variants: Doctrine\ORM\PersistentCollection {#6479 …}
  #options: Doctrine\ORM\PersistentCollection {#6622 …}
  #associations: Doctrine\ORM\PersistentCollection {#6582 …}
  #createdAt: DateTime @1689944697 {#6240
    date: 2023-07-21 15:04:57.0 Europe/Paris (+02:00)
  }
  #updatedAt: DateTime @1689944698 {#6368
    date: 2023-07-21 15:04:58.0 Europe/Paris (+02:00)
  }
  #enabled: true
  #translations: Doctrine\ORM\PersistentCollection {#6770 …}
  #translationsCache: [
    "fr_FR" => App\Entity\Product\ProductTranslation {#6772
      #shortDescription: "<p>La trousse de premiers secours comprend tous les accessoires n&eacute;cessaires pour assurer les soins patients et la protection du secouriste.Elle compl&egrave;te parfaitement l&#39;utilisation d&#39;un d&eacute;fibrillateur de la gamme HeartStart.</p>"
      #id: 18
      #name: "Trousse de 1er secours pour défibrillateur HeartStart HS1"
      #slug: "trousse-de-1er-secours-pour-defibrillateur-heartstart-hs1"
      #description: """
        <p>Si vous le souhaitez il est possible de compl&eacute;ter le d&eacute;fibrillateur HeartStart&nbsp;HS1 par une trousse de premiers secours. Cette pochette zipp&eacute;e qui s&#39;attache &agrave; la poign&eacute;e de la mallette de transport de votre d&eacute;fibrillateur contient :</p>\r\n
        \r\n
        <ul>\r\n
        \t<li>2 Paires de gants</li>\r\n
        \t<li>1 masque de poche pour le bouche-&agrave;-bouche</li>\r\n
        \t<li>1 Paire de ciseaux m&eacute;dicaux</li>\r\n
        \t<li>1 Rasoir de pr&eacute;paration</li>\r\n
        \t<li>1 Grande serviette en papier super absorbant</li>\r\n
        </ul>
        """
      #metaKeywords: null
      #metaDescription: null
      #locale: "fr_FR"
      #translatable: App\Entity\Product\Product {#6248}
    }
  ]
  #currentLocale: "fr_FR"
  #currentTranslation: null
  #fallbackLocale: "fr_FR"
  #productBundle: null
  #vendor: Proxies\__CG__\App\Entity\Vendor\Vendor {#6243 …}
}
same as passed value

Resolved Options

View Variables