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 {#16853
  -cart: App\Entity\Order\Order {#8106 …}
  -cartItem: App\Entity\Order\OrderItem {#16826
    #vendor: null
    #version: 1
    #variant: App\Entity\Product\ProductVariant {#16655 …}
    #productName: null
    #variantName: null
    #id: null
    #order: null
    #quantity: 1
    #unitPrice: 0
    #total: 0
    #immutable: false
    #units: Doctrine\Common\Collections\ArrayCollection {#16855 …}
    #unitsTotal: 0
    #adjustments: Doctrine\Common\Collections\ArrayCollection {#16856 …}
    #adjustmentsTotal: 0
    #productBundleOrderItems: Doctrine\Common\Collections\ArrayCollection {#16852 …}
  }
}
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 {#16853
  -cart: App\Entity\Order\Order {#8106 …}
  -cartItem: App\Entity\Order\OrderItem {#16826
    #vendor: null
    #version: 1
    #variant: App\Entity\Product\ProductVariant {#16655 …}
    #productName: null
    #variantName: null
    #id: null
    #order: null
    #quantity: 1
    #unitPrice: 0
    #total: 0
    #immutable: false
    #units: Doctrine\Common\Collections\ArrayCollection {#16855 …}
    #unitsTotal: 0
    #adjustments: Doctrine\Common\Collections\ArrayCollection {#16856 …}
    #adjustmentsTotal: 0
    #productBundleOrderItems: Doctrine\Common\Collections\ArrayCollection {#16852 …}
  }
}
same as passed value
product
App\Entity\Product\Product {#6814
  #variantSelectionMethod: "choice"
  #productTaxons: Doctrine\ORM\PersistentCollection {#6840 …}
  #channels: Doctrine\ORM\PersistentCollection {#6817 …}
  #mainTaxon: Proxies\__CG__\App\Entity\Taxonomy\Taxon {#6815 …}
  #reviews: Doctrine\ORM\PersistentCollection {#6834 …}
  #averageRating: 0.0
  #images: Doctrine\ORM\PersistentCollection {#6820 …}
  #id: 39
  #code: "EMBOUTS100"
  #attributes: Doctrine\ORM\PersistentCollection {#6826 …}
  #variants: Doctrine\ORM\PersistentCollection {#6822 …}
  #options: Doctrine\ORM\PersistentCollection {#6832 …}
  #associations: Doctrine\ORM\PersistentCollection {#6830 …}
  #createdAt: DateTime @1690450940 {#6812
    date: 2023-07-27 11:42:20.0 Europe/Paris (+02:00)
  }
  #updatedAt: DateTime @1690450940 {#6811
    date: 2023-07-27 11:42:20.0 Europe/Paris (+02:00)
  }
  #enabled: true
  #translations: Doctrine\ORM\PersistentCollection {#6837 …}
  #translationsCache: [
    "fr_FR" => App\Entity\Product\ProductTranslation {#6838
      #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 {#6814}
    }
  ]
  #currentLocale: "fr_FR"
  #currentTranslation: null
  #fallbackLocale: "fr_FR"
  #productBundle: null
  #vendor: Proxies\__CG__\App\Entity\Vendor\Vendor {#6816 …}
}
same as passed value

Resolved Options

View Variables