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 {#18103
  -cart: App\Entity\Order\Order {#8105 …}
  -cartItem: App\Entity\Order\OrderItem {#18076
    #vendor: null
    #version: 1
    #variant: App\Entity\Product\ProductVariant {#17906 …}
    #productName: null
    #variantName: null
    #id: null
    #order: null
    #quantity: 1
    #unitPrice: 0
    #total: 0
    #immutable: false
    #units: Doctrine\Common\Collections\ArrayCollection {#18105 …}
    #unitsTotal: 0
    #adjustments: Doctrine\Common\Collections\ArrayCollection {#18106 …}
    #adjustmentsTotal: 0
    #productBundleOrderItems: Doctrine\Common\Collections\ArrayCollection {#18102 …}
  }
}
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 {#18103
  -cart: App\Entity\Order\Order {#8105 …}
  -cartItem: App\Entity\Order\OrderItem {#18076
    #vendor: null
    #version: 1
    #variant: App\Entity\Product\ProductVariant {#17906 …}
    #productName: null
    #variantName: null
    #id: null
    #order: null
    #quantity: 1
    #unitPrice: 0
    #total: 0
    #immutable: false
    #units: Doctrine\Common\Collections\ArrayCollection {#18105 …}
    #unitsTotal: 0
    #adjustments: Doctrine\Common\Collections\ArrayCollection {#18106 …}
    #adjustmentsTotal: 0
    #productBundleOrderItems: Doctrine\Common\Collections\ArrayCollection {#18102 …}
  }
}
same as passed value
product
App\Entity\Product\Product {#6875
  #variantSelectionMethod: "choice"
  #productTaxons: Doctrine\ORM\PersistentCollection {#6899 …}
  #channels: Doctrine\ORM\PersistentCollection {#6876 …}
  #mainTaxon: Proxies\__CG__\App\Entity\Taxonomy\Taxon {#6845 …}
  #reviews: Doctrine\ORM\PersistentCollection {#6893 …}
  #averageRating: 0.0
  #images: Doctrine\ORM\PersistentCollection {#6879 …}
  #id: 51
  #code: "P250-PMR"
  #attributes: Doctrine\ORM\PersistentCollection {#6885 …}
  #variants: Doctrine\ORM\PersistentCollection {#6881 …}
  #options: Doctrine\ORM\PersistentCollection {#6891 …}
  #associations: Doctrine\ORM\PersistentCollection {#6889 …}
  #createdAt: DateTime @1690966718 {#6873
    date: 2023-08-02 10:58:38.0 Europe/Paris (+02:00)
  }
  #updatedAt: DateTime @1690966718 {#6872
    date: 2023-08-02 10:58:38.0 Europe/Paris (+02:00)
  }
  #enabled: true
  #translations: Doctrine\ORM\PersistentCollection {#6896 …}
  #translationsCache: [
    "fr_FR" => App\Entity\Product\ProductTranslation {#6897
      #shortDescription: "<p>Pictogramme de transports PMR - Avant - PVC 2 ventouses.</p>"
      #id: 51
      #name: "P250.PMR - Pictogramme AVANT de transport PMR (par lot de 10 pièces)"
      #slug: "p250-pmr"
      #description: """
        <p>Pictogramme AVANT de transport PMR (par lot de 10 pi&egrave;ces)</p>\r\n
        \r\n
        <p><strong>Cat&eacute;gorie</strong><br />\r\n
        Pictogramme avant 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 {#6875}
    }
  ]
  #currentLocale: "fr_FR"
  #currentTranslation: null
  #fallbackLocale: "fr_FR"
  #productBundle: null
  #vendor: Proxies\__CG__\App\Entity\Vendor\Vendor {#6846 …}
}
same as passed value

Resolved Options

View Variables