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 {#19909
  -cart: App\Entity\Order\Order {#8108 …}
  -cartItem: App\Entity\Order\OrderItem {#19882
    #vendor: null
    #version: 1
    #variant: App\Entity\Product\ProductVariant {#19712 …}
    #productName: null
    #variantName: null
    #id: null
    #order: null
    #quantity: 1
    #unitPrice: 0
    #total: 0
    #immutable: false
    #units: Doctrine\Common\Collections\ArrayCollection {#19911 …}
    #unitsTotal: 0
    #adjustments: Doctrine\Common\Collections\ArrayCollection {#19912 …}
    #adjustmentsTotal: 0
    #productBundleOrderItems: Doctrine\Common\Collections\ArrayCollection {#19908 …}
  }
}
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 {#19909
  -cart: App\Entity\Order\Order {#8108 …}
  -cartItem: App\Entity\Order\OrderItem {#19882
    #vendor: null
    #version: 1
    #variant: App\Entity\Product\ProductVariant {#19712 …}
    #productName: null
    #variantName: null
    #id: null
    #order: null
    #quantity: 1
    #unitPrice: 0
    #total: 0
    #immutable: false
    #units: Doctrine\Common\Collections\ArrayCollection {#19911 …}
    #unitsTotal: 0
    #adjustments: Doctrine\Common\Collections\ArrayCollection {#19912 …}
    #adjustmentsTotal: 0
    #productBundleOrderItems: Doctrine\Common\Collections\ArrayCollection {#19908 …}
  }
}
same as passed value
product
App\Entity\Product\Product {#6965
  #variantSelectionMethod: "choice"
  #productTaxons: Doctrine\ORM\PersistentCollection {#6989 …}
  #channels: Doctrine\ORM\PersistentCollection {#6966 …}
  #mainTaxon: Proxies\__CG__\App\Entity\Taxonomy\Taxon {#6331 …}
  #reviews: Doctrine\ORM\PersistentCollection {#6983 …}
  #averageRating: 0.0
  #images: Doctrine\ORM\PersistentCollection {#6969 …}
  #id: 19
  #code: "8021"
  #attributes: Doctrine\ORM\PersistentCollection {#6975 …}
  #variants: Doctrine\ORM\PersistentCollection {#6971 …}
  #options: Doctrine\ORM\PersistentCollection {#6981 …}
  #associations: Doctrine\ORM\PersistentCollection {#6979 …}
  #createdAt: DateTime @1690360846 {#6963
    date: 2023-07-26 10:40:46.0 Europe/Paris (+02:00)
  }
  #updatedAt: DateTime @1690360847 {#6962
    date: 2023-07-26 10:40:47.0 Europe/Paris (+02:00)
  }
  #enabled: true
  #translations: Doctrine\ORM\PersistentCollection {#6986 …}
  #translationsCache: [
    "fr_FR" => App\Entity\Product\ProductTranslation {#6987
      #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 {#6965}
    }
  ]
  #currentLocale: "fr_FR"
  #currentTranslation: null
  #fallbackLocale: "fr_FR"
  #productBundle: null
  #vendor: Proxies\__CG__\App\Entity\Vendor\Vendor {#6330 …}
}
same as passed value

Resolved Options

View Variables