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 {#19409
  -cart: App\Entity\Order\Order {#8104 …}
  -cartItem: App\Entity\Order\OrderItem {#19382
    #vendor: null
    #version: 1
    #variant: App\Entity\Product\ProductVariant {#19212 …}
    #productName: null
    #variantName: null
    #id: null
    #order: null
    #quantity: 1
    #unitPrice: 0
    #total: 0
    #immutable: false
    #units: Doctrine\Common\Collections\ArrayCollection {#19411 …}
    #unitsTotal: 0
    #adjustments: Doctrine\Common\Collections\ArrayCollection {#19412 …}
    #adjustmentsTotal: 0
    #productBundleOrderItems: Doctrine\Common\Collections\ArrayCollection {#19408 …}
  }
}
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 {#19409
  -cart: App\Entity\Order\Order {#8104 …}
  -cartItem: App\Entity\Order\OrderItem {#19382
    #vendor: null
    #version: 1
    #variant: App\Entity\Product\ProductVariant {#19212 …}
    #productName: null
    #variantName: null
    #id: null
    #order: null
    #quantity: 1
    #unitPrice: 0
    #total: 0
    #immutable: false
    #units: Doctrine\Common\Collections\ArrayCollection {#19411 …}
    #unitsTotal: 0
    #adjustments: Doctrine\Common\Collections\ArrayCollection {#19412 …}
    #adjustmentsTotal: 0
    #productBundleOrderItems: Doctrine\Common\Collections\ArrayCollection {#19408 …}
  }
}
same as passed value
product
App\Entity\Product\Product {#6930
  #variantSelectionMethod: "choice"
  #productTaxons: Doctrine\ORM\PersistentCollection {#6956 …}
  #channels: Doctrine\ORM\PersistentCollection {#6933 …}
  #mainTaxon: Proxies\__CG__\App\Entity\Taxonomy\Taxon {#6931 …}
  #reviews: Doctrine\ORM\PersistentCollection {#6950 …}
  #averageRating: 0.0
  #images: Doctrine\ORM\PersistentCollection {#6936 …}
  #id: 19
  #code: "8021"
  #attributes: Doctrine\ORM\PersistentCollection {#6942 …}
  #variants: Doctrine\ORM\PersistentCollection {#6938 …}
  #options: Doctrine\ORM\PersistentCollection {#6948 …}
  #associations: Doctrine\ORM\PersistentCollection {#6946 …}
  #createdAt: DateTime @1690360846 {#6928
    date: 2023-07-26 10:40:46.0 Europe/Paris (+02:00)
  }
  #updatedAt: DateTime @1690360847 {#6927
    date: 2023-07-26 10:40:47.0 Europe/Paris (+02:00)
  }
  #enabled: true
  #translations: Doctrine\ORM\PersistentCollection {#6953 …}
  #translationsCache: [
    "fr_FR" => App\Entity\Product\ProductTranslation {#6954
      #shortDescription: """
        <ul>\r\n
        \t<li>Masque bouche &agrave; bouche avec &eacute;lastiques de fixation au niveau des oreilles</li>\r\n
        \t<li>Valve anti-retour</li>\r\n
        \t<li>Instructions d&rsquo;utilisation&nbsp;imprim&eacute;es sur le masque</li>\r\n
        </ul>
        """
      #id: 19
      #name: "Masque Ventilation"
      #slug: "masque-ventilation"
      #description: """
        <p>Le masque bouche &agrave; bouche est &agrave; usage unique, avec un &eacute;lastiques de fixation au niveau des oreilles.&nbsp;La valve anti-retour permet une insufflation efficace sans risque de contagion par la salive, le sang ou la peau.<br />\r\n
        <br />\r\n
        Le masque bouche &agrave; bouche avec soupape est id&eacute;al pour intervenir en cas de besoin. Il est tr&egrave;s appr&eacute;ci&eacute; de tous les professionnels et les personnes qui l&#39;utilisent lors de situation &agrave; risque.</p>
        """
      #metaKeywords: null
      #metaDescription: null
      #locale: "fr_FR"
      #translatable: App\Entity\Product\Product {#6930}
    }
  ]
  #currentLocale: "fr_FR"
  #currentTranslation: null
  #fallbackLocale: "fr_FR"
  #productBundle: null
  #vendor: Proxies\__CG__\App\Entity\Vendor\Vendor {#6932 …}
}
same as passed value

Resolved Options

View Variables