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 {#18075
  -cart: App\Entity\Order\Order {#8110 …}
  -cartItem: App\Entity\Order\OrderItem {#18048
    #vendor: null
    #version: 1
    #variant: App\Entity\Product\ProductVariant {#17878 …}
    #productName: null
    #variantName: null
    #id: null
    #order: null
    #quantity: 1
    #unitPrice: 0
    #total: 0
    #immutable: false
    #units: Doctrine\Common\Collections\ArrayCollection {#18077 …}
    #unitsTotal: 0
    #adjustments: Doctrine\Common\Collections\ArrayCollection {#18078 …}
    #adjustmentsTotal: 0
    #productBundleOrderItems: Doctrine\Common\Collections\ArrayCollection {#18074 …}
  }
}
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 {#18075
  -cart: App\Entity\Order\Order {#8110 …}
  -cartItem: App\Entity\Order\OrderItem {#18048
    #vendor: null
    #version: 1
    #variant: App\Entity\Product\ProductVariant {#17878 …}
    #productName: null
    #variantName: null
    #id: null
    #order: null
    #quantity: 1
    #unitPrice: 0
    #total: 0
    #immutable: false
    #units: Doctrine\Common\Collections\ArrayCollection {#18077 …}
    #unitsTotal: 0
    #adjustments: Doctrine\Common\Collections\ArrayCollection {#18078 …}
    #adjustmentsTotal: 0
    #productBundleOrderItems: Doctrine\Common\Collections\ArrayCollection {#18074 …}
  }
}
same as passed value
product
App\Entity\Product\Product {#6877
  #variantSelectionMethod: "choice"
  #productTaxons: Doctrine\ORM\PersistentCollection {#6901 …}
  #channels: Doctrine\ORM\PersistentCollection {#6878 …}
  #mainTaxon: Proxies\__CG__\App\Entity\Taxonomy\Taxon {#6786 …}
  #reviews: Doctrine\ORM\PersistentCollection {#6895 …}
  #averageRating: 0.0
  #images: Doctrine\ORM\PersistentCollection {#6881 …}
  #id: 38
  #code: "EMBOUTS20"
  #attributes: Doctrine\ORM\PersistentCollection {#6887 …}
  #variants: Doctrine\ORM\PersistentCollection {#6883 …}
  #options: Doctrine\ORM\PersistentCollection {#6893 …}
  #associations: Doctrine\ORM\PersistentCollection {#6891 …}
  #createdAt: DateTime @1690450698 {#6875
    date: 2023-07-27 11:38:18.0 Europe/Paris (+02:00)
  }
  #updatedAt: DateTime @1690450698 {#6876
    date: 2023-07-27 11:38:18.0 Europe/Paris (+02:00)
  }
  #enabled: true
  #translations: Doctrine\ORM\PersistentCollection {#6898 …}
  #translationsCache: [
    "fr_FR" => App\Entity\Product\ProductTranslation {#6899
      #shortDescription: "<p>Sachet 20 embouts buccaux (usage unique) &agrave; clapet anti-retour compatibles Ethylec, Ethylec +, Ethyway V2.</p>"
      #id: 38
      #name: "Embouts Ethyway/Ethylec x20"
      #slug: "embouts-ethyway-ethylec-x20"
      #description: """
        <ul>\r\n
        \t<li>Emballage individuel</li>\r\n
        \t<li>Clapet anti-retour</li>\r\n
        \t<li>Conditionnement : sachet de 20 pi&egrave;ces</li>\r\n
        </ul>
        """
      #metaKeywords: null
      #metaDescription: null
      #locale: "fr_FR"
      #translatable: App\Entity\Product\Product {#6877}
    }
  ]
  #currentLocale: "fr_FR"
  #currentTranslation: null
  #fallbackLocale: "fr_FR"
  #productBundle: null
  #vendor: Proxies\__CG__\App\Entity\Vendor\Vendor {#6787 …}
}
same as passed value

Resolved Options

View Variables