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 {#17943
  -cart: App\Entity\Order\Order {#7981 …}
  -cartItem: App\Entity\Order\OrderItem {#17916
    #vendor: null
    #version: 1
    #variant: App\Entity\Product\ProductVariant {#17746 …}
    #productName: null
    #variantName: null
    #id: null
    #order: null
    #quantity: 1
    #unitPrice: 0
    #total: 0
    #immutable: false
    #units: Doctrine\Common\Collections\ArrayCollection {#17945 …}
    #unitsTotal: 0
    #adjustments: Doctrine\Common\Collections\ArrayCollection {#17946 …}
    #adjustmentsTotal: 0
    #productBundleOrderItems: Doctrine\Common\Collections\ArrayCollection {#17942 …}
  }
}
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 {#17943
  -cart: App\Entity\Order\Order {#7981 …}
  -cartItem: App\Entity\Order\OrderItem {#17916
    #vendor: null
    #version: 1
    #variant: App\Entity\Product\ProductVariant {#17746 …}
    #productName: null
    #variantName: null
    #id: null
    #order: null
    #quantity: 1
    #unitPrice: 0
    #total: 0
    #immutable: false
    #units: Doctrine\Common\Collections\ArrayCollection {#17945 …}
    #unitsTotal: 0
    #adjustments: Doctrine\Common\Collections\ArrayCollection {#17946 …}
    #adjustmentsTotal: 0
    #productBundleOrderItems: Doctrine\Common\Collections\ArrayCollection {#17942 …}
  }
}
same as passed value
product
App\Entity\Product\Product {#6868
  #variantSelectionMethod: "choice"
  #productTaxons: Doctrine\ORM\PersistentCollection {#6892 …}
  #channels: Doctrine\ORM\PersistentCollection {#6869 …}
  #mainTaxon: App\Entity\Taxonomy\Taxon {#6113 …}
  #reviews: Doctrine\ORM\PersistentCollection {#6886 …}
  #averageRating: 0.0
  #images: Doctrine\ORM\PersistentCollection {#6872 …}
  #id: 39
  #code: "EMBOUTS100"
  #attributes: Doctrine\ORM\PersistentCollection {#6878 …}
  #variants: Doctrine\ORM\PersistentCollection {#6874 …}
  #options: Doctrine\ORM\PersistentCollection {#6884 …}
  #associations: Doctrine\ORM\PersistentCollection {#6882 …}
  #createdAt: DateTime @1690450940 {#6866
    date: 2023-07-27 11:42:20.0 Europe/Paris (+02:00)
  }
  #updatedAt: DateTime @1690450940 {#6867
    date: 2023-07-27 11:42:20.0 Europe/Paris (+02:00)
  }
  #enabled: true
  #translations: Doctrine\ORM\PersistentCollection {#6889 …}
  #translationsCache: [
    "fr_FR" => App\Entity\Product\ProductTranslation {#6890
      #shortDescription: "<p>Sac de 100 embouts buccaux (usage unique) &agrave; clapet anti-retour compatibles Ethylec, Ethylec +, Ethyway V2.</p>"
      #id: 39
      #name: "Embouts Ethyway/Ethylec x100"
      #slug: "embouts-ethyway-ethylec-x100"
      #description: """
        <ul>\r\n
        \t<li>Emballage individuel</li>\r\n
        \t<li>Clapet anti-retour</li>\r\n
        \t<li>Conditionnement : sac&nbsp;de 100 pi&egrave;ces</li>\r\n
        </ul>
        """
      #metaKeywords: null
      #metaDescription: null
      #locale: "fr_FR"
      #translatable: App\Entity\Product\Product {#6868}
    }
  ]
  #currentLocale: "fr_FR"
  #currentTranslation: null
  #fallbackLocale: "fr_FR"
  #productBundle: null
  #vendor: Proxies\__CG__\App\Entity\Vendor\Vendor {#6238 …}
}
same as passed value

Resolved Options

View Variables