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 {#16304
  -cart: App\Entity\Order\Order {#8427 …}
  -cartItem: App\Entity\Order\OrderItem {#16277
    #vendor: null
    #version: 1
    #variant: App\Entity\Product\ProductVariant {#7005 …}
    #productName: null
    #variantName: null
    #id: null
    #order: null
    #quantity: 1
    #unitPrice: 0
    #total: 0
    #immutable: false
    #units: Doctrine\Common\Collections\ArrayCollection {#16306 …}
    #unitsTotal: 0
    #adjustments: Doctrine\Common\Collections\ArrayCollection {#16307 …}
    #adjustmentsTotal: 0
    #productBundleOrderItems: Doctrine\Common\Collections\ArrayCollection {#16303 …}
  }
}
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 {#16304
  -cart: App\Entity\Order\Order {#8427 …}
  -cartItem: App\Entity\Order\OrderItem {#16277
    #vendor: null
    #version: 1
    #variant: App\Entity\Product\ProductVariant {#7005 …}
    #productName: null
    #variantName: null
    #id: null
    #order: null
    #quantity: 1
    #unitPrice: 0
    #total: 0
    #immutable: false
    #units: Doctrine\Common\Collections\ArrayCollection {#16306 …}
    #unitsTotal: 0
    #adjustments: Doctrine\Common\Collections\ArrayCollection {#16307 …}
    #adjustmentsTotal: 0
    #productBundleOrderItems: Doctrine\Common\Collections\ArrayCollection {#16303 …}
  }
}
same as passed value
product
App\Entity\Product\Product {#6970
  #variantSelectionMethod: "choice"
  #productTaxons: Doctrine\ORM\PersistentCollection {#7001 …}
  #channels: Doctrine\ORM\PersistentCollection {#6971 …}
  #mainTaxon: Proxies\__CG__\App\Entity\Taxonomy\Taxon {#6026 …}
  #reviews: Doctrine\ORM\PersistentCollection {#6995 …}
  #averageRating: 0.0
  #images: Doctrine\ORM\PersistentCollection {#6974 …}
  #id: 18
  #code: "TROUSSE-1SECOURS-DEFIBRILLATEUR"
  #attributes: Doctrine\ORM\PersistentCollection {#6987 …}
  #variants: Doctrine\ORM\PersistentCollection {#7004 …}
  #options: Doctrine\ORM\PersistentCollection {#6993 …}
  #associations: Doctrine\ORM\PersistentCollection {#6991 …}
  #createdAt: DateTime @1689944697 {#6968
    date: 2023-07-21 15:04:57.0 Europe/Paris (+02:00)
  }
  #updatedAt: DateTime @1689944698 {#6967
    date: 2023-07-21 15:04:58.0 Europe/Paris (+02:00)
  }
  #enabled: true
  #translations: Doctrine\ORM\PersistentCollection {#6998 …}
  #translationsCache: [
    "fr_FR" => App\Entity\Product\ProductTranslation {#6999
      #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 {#6970}
    }
  ]
  #currentLocale: "fr_FR"
  #currentTranslation: null
  #fallbackLocale: "fr_FR"
  #productBundle: null
  #vendor: Proxies\__CG__\App\Entity\Vendor\Vendor {#6459 …}
}
same as passed value

Resolved Options

View Variables