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 {#18775
  -cart: App\Entity\Order\Order {#8425 …}
  -cartItem: App\Entity\Order\OrderItem {#18748
    #vendor: null
    #version: 1
    #variant: App\Entity\Product\ProductVariant {#7187 …}
    #productName: null
    #variantName: null
    #id: null
    #order: null
    #quantity: 1
    #unitPrice: 0
    #total: 0
    #immutable: false
    #units: Doctrine\Common\Collections\ArrayCollection {#18777 …}
    #unitsTotal: 0
    #adjustments: Doctrine\Common\Collections\ArrayCollection {#18778 …}
    #adjustmentsTotal: 0
    #productBundleOrderItems: Doctrine\Common\Collections\ArrayCollection {#18774 …}
  }
}
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 {#18775
  -cart: App\Entity\Order\Order {#8425 …}
  -cartItem: App\Entity\Order\OrderItem {#18748
    #vendor: null
    #version: 1
    #variant: App\Entity\Product\ProductVariant {#7187 …}
    #productName: null
    #variantName: null
    #id: null
    #order: null
    #quantity: 1
    #unitPrice: 0
    #total: 0
    #immutable: false
    #units: Doctrine\Common\Collections\ArrayCollection {#18777 …}
    #unitsTotal: 0
    #adjustments: Doctrine\Common\Collections\ArrayCollection {#18778 …}
    #adjustmentsTotal: 0
    #productBundleOrderItems: Doctrine\Common\Collections\ArrayCollection {#18774 …}
  }
}
same as passed value
product
App\Entity\Product\Product {#7157
  #variantSelectionMethod: "choice"
  #productTaxons: Doctrine\ORM\PersistentCollection {#7183 …}
  #channels: Doctrine\ORM\PersistentCollection {#7158 …}
  #mainTaxon: Proxies\__CG__\App\Entity\Taxonomy\Taxon {#6026 …}
  #reviews: Doctrine\ORM\PersistentCollection {#7177 …}
  #averageRating: 0.0
  #images: Doctrine\ORM\PersistentCollection {#7161 …}
  #id: 28
  #code: "10088"
  #attributes: Doctrine\ORM\PersistentCollection {#7171 …}
  #variants: Doctrine\ORM\PersistentCollection {#7186 …}
  #options: Doctrine\ORM\PersistentCollection {#7175 …}
  #associations: Doctrine\ORM\PersistentCollection {#7167 …}
  #createdAt: DateTime @1690366455 {#7155
    date: 2023-07-26 12:14:15.0 Europe/Paris (+02:00)
  }
  #updatedAt: DateTime @1690366455 {#7154
    date: 2023-07-26 12:14:15.0 Europe/Paris (+02:00)
  }
  #enabled: true
  #translations: Doctrine\ORM\PersistentCollection {#7180 …}
  #translationsCache: [
    "fr_FR" => App\Entity\Product\ProductTranslation {#7181
      #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 {#7157}
    }
  ]
  #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