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 {#16704
  -cart: App\Entity\Order\Order {#8108 …}
  -cartItem: App\Entity\Order\OrderItem {#16677
    #vendor: null
    #version: 1
    #variant: App\Entity\Product\ProductVariant {#16507 …}
    #productName: null
    #variantName: null
    #id: null
    #order: null
    #quantity: 1
    #unitPrice: 0
    #total: 0
    #immutable: false
    #units: Doctrine\Common\Collections\ArrayCollection {#16706 …}
    #unitsTotal: 0
    #adjustments: Doctrine\Common\Collections\ArrayCollection {#16707 …}
    #adjustmentsTotal: 0
    #productBundleOrderItems: Doctrine\Common\Collections\ArrayCollection {#16703 …}
  }
}
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 {#16704
  -cart: App\Entity\Order\Order {#8108 …}
  -cartItem: App\Entity\Order\OrderItem {#16677
    #vendor: null
    #version: 1
    #variant: App\Entity\Product\ProductVariant {#16507 …}
    #productName: null
    #variantName: null
    #id: null
    #order: null
    #quantity: 1
    #unitPrice: 0
    #total: 0
    #immutable: false
    #units: Doctrine\Common\Collections\ArrayCollection {#16706 …}
    #unitsTotal: 0
    #adjustments: Doctrine\Common\Collections\ArrayCollection {#16707 …}
    #adjustmentsTotal: 0
    #productBundleOrderItems: Doctrine\Common\Collections\ArrayCollection {#16703 …}
  }
}
same as passed value
product
App\Entity\Product\Product {#6818
  #variantSelectionMethod: "choice"
  #productTaxons: Doctrine\ORM\PersistentCollection {#6842 …}
  #channels: Doctrine\ORM\PersistentCollection {#6819 …}
  #mainTaxon: Proxies\__CG__\App\Entity\Taxonomy\Taxon {#6331 …}
  #reviews: Doctrine\ORM\PersistentCollection {#6836 …}
  #averageRating: 0.0
  #images: Doctrine\ORM\PersistentCollection {#6822 …}
  #id: 28
  #code: "10088"
  #attributes: Doctrine\ORM\PersistentCollection {#6828 …}
  #variants: Doctrine\ORM\PersistentCollection {#6824 …}
  #options: Doctrine\ORM\PersistentCollection {#6834 …}
  #associations: Doctrine\ORM\PersistentCollection {#6832 …}
  #createdAt: DateTime @1690366455 {#6816
    date: 2023-07-26 12:14:15.0 Europe/Paris (+02:00)
  }
  #updatedAt: DateTime @1690366455 {#6815
    date: 2023-07-26 12:14:15.0 Europe/Paris (+02:00)
  }
  #enabled: true
  #translations: Doctrine\ORM\PersistentCollection {#6839 …}
  #translationsCache: [
    "fr_FR" => App\Entity\Product\ProductTranslation {#6840
      #shortDescription: "<p>Cette composition vous offre une large gamme de produits pour faire face &agrave; de nombreuses situations courantes en milieu de travail. Pour votre composition, il peut s&#39;av&eacute;rer utile de prendre une trousse vide afin de stocker les produits de soins.</p>"
      #id: 28
      #name: "Réassort pour trousse de secours Médecine du travail"
      #slug: "kit-reassort-pour-trousse-medecine-du-travail"
      #description: """
        <p>Composition :</p>\r\n
        \r\n
        <ul>\r\n
        \t<li>1 paire de ciseaux</li>\r\n
        \t<li>1 pince &agrave; &eacute;chardes</li>\r\n
        \t<li>3 bandes de gaze 3 m x 7 cm</li>\r\n
        \t<li>3 bandes de gaze 3 m x 10 cm</li>\r\n
        \t<li>1 bande cr&ecirc;pe 4 m x 10 cm</li>\r\n
        \t<li>1 sparadrap microporeux 2.5 cm x 5 m</li>\r\n
        \t<li>1 antiseptique chlorhexidine 50 ml</li>\r\n
        \t<li>10 dosettes s&eacute;rum physiologique</li>\r\n
        \t<li>1 coussin compressif 10 x 10 x 3 cm</li>\r\n
        \t<li>1 couverture de survie</li>\r\n
        \t<li>1 masque bouche &agrave; bouche</li>\r\n
        \t<li>1 &eacute;charpe triangulaire</li>\r\n
        \t<li>10 compresses st&eacute;riles 20 x 20</li>\r\n
        \t<li>10 compresses st&eacute;riles 30 x 30</li>\r\n
        \t<li>40 pansements assortis</li>\r\n
        \t<li>12 &eacute;pingles de s&ucirc;ret&eacute;</li>\r\n
        \t<li>5 paires de gants vinyle</li>\r\n
        \t<li>1 gel br&ucirc;lures vapo 50 ml</li>\r\n
        \t<li>1 cr&egrave;me arnica 50 ml</li>\r\n
        \t<li>1 manuel de premiers secours</li>\r\n
        </ul>
        """
      #metaKeywords: null
      #metaDescription: null
      #locale: "fr_FR"
      #translatable: App\Entity\Product\Product {#6818}
    }
  ]
  #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