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 {#16538
  -cart: App\Entity\Order\Order {#7977 …}
  -cartItem: App\Entity\Order\OrderItem {#16511
    #vendor: null
    #version: 1
    #variant: App\Entity\Product\ProductVariant {#16313 …}
    #productName: null
    #variantName: null
    #id: null
    #order: null
    #quantity: 1
    #unitPrice: 0
    #total: 0
    #immutable: false
    #units: Doctrine\Common\Collections\ArrayCollection {#16540 …}
    #unitsTotal: 0
    #adjustments: Doctrine\Common\Collections\ArrayCollection {#16541 …}
    #adjustmentsTotal: 0
    #productBundleOrderItems: Doctrine\Common\Collections\ArrayCollection {#16537 …}
  }
}
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 {#16538
  -cart: App\Entity\Order\Order {#7977 …}
  -cartItem: App\Entity\Order\OrderItem {#16511
    #vendor: null
    #version: 1
    #variant: App\Entity\Product\ProductVariant {#16313 …}
    #productName: null
    #variantName: null
    #id: null
    #order: null
    #quantity: 1
    #unitPrice: 0
    #total: 0
    #immutable: false
    #units: Doctrine\Common\Collections\ArrayCollection {#16540 …}
    #unitsTotal: 0
    #adjustments: Doctrine\Common\Collections\ArrayCollection {#16541 …}
    #adjustmentsTotal: 0
    #productBundleOrderItems: Doctrine\Common\Collections\ArrayCollection {#16537 …}
  }
}
same as passed value
product
App\Entity\Product\Product {#14879
  #variantSelectionMethod: "choice"
  #productTaxons: Doctrine\ORM\PersistentCollection {#14913 …}
  #channels: Doctrine\ORM\PersistentCollection {#14919 …}
  #mainTaxon: App\Entity\Taxonomy\Taxon {#10941 …}
  #reviews: Doctrine\ORM\PersistentCollection {#14929 …}
  #averageRating: 0.0
  #images: Doctrine\ORM\PersistentCollection {#14910 …}
  #id: 54
  #code: "P400-PMR"
  #attributes: Doctrine\ORM\PersistentCollection {#14915 …}
  #variants: Doctrine\ORM\PersistentCollection {#14923 …}
  #options: Doctrine\ORM\PersistentCollection {#14927 …}
  #associations: Doctrine\ORM\PersistentCollection {#14925 …}
  #createdAt: DateTime @1690967987 {#14882
    date: 2023-08-02 11:19:47.0 Europe/Paris (+02:00)
  }
  #updatedAt: DateTime @1690967987 {#14881
    date: 2023-08-02 11:19:47.0 Europe/Paris (+02:00)
  }
  #enabled: true
  #translations: Doctrine\ORM\PersistentCollection {#14932 …}
  #translationsCache: [
    "fr_FR" => App\Entity\Product\ProductTranslation {#14933
      #shortDescription: "<p>Pictogramme de transport PMR - Arri&egrave;re - PVC 2 ventouses.</p>"
      #id: 54
      #name: "P400.PMR - Pictogramme ARRIERE de transport PMR (par lot de 10 pièces)"
      #slug: "p400-pmr"
      #description: """
        <p><strong>Pictogramme ARRIERE de transport PMR (par lot de 10 pi&egrave;ces)</strong></p>\r\n
        \r\n
        <p><strong>Cat&eacute;gorie</strong><br />\r\n
        Pictogramme arri&egrave;re en PVC</p>\r\n
        \r\n
        <p><strong>Mode de fixation</strong><br />\r\n
        A Ventouses</p>\r\n
        \r\n
        <p><strong>Dimmensions</strong></p>\r\n
        \r\n
        <p>250 x 250 mm</p>\r\n
        \r\n
        <p><strong>Exemple d&#39;application</strong><br />\r\n
        Cars, bus et v&eacute;hicules professionnels du transport de voyageur PMR</p>
        """
      #metaKeywords: null
      #metaDescription: null
      #locale: "fr_FR"
      #translatable: App\Entity\Product\Product {#14879}
    }
  ]
  #currentLocale: "fr_FR"
  #currentTranslation: null
  #fallbackLocale: "fr_FR"
  #productBundle: null
  #vendor: Proxies\__CG__\App\Entity\Vendor\Vendor {#14867 …}
}
same as passed value

Resolved Options

View Variables