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 {#15583
  -cart: App\Entity\Order\Order {#8427 …}
  -cartItem: App\Entity\Order\OrderItem {#15578
    #vendor: null
    #version: 1
    #variant: App\Entity\Product\ProductVariant {#6893 …}
    #productName: null
    #variantName: null
    #id: null
    #order: null
    #quantity: 1
    #unitPrice: 0
    #total: 0
    #immutable: false
    #units: Doctrine\Common\Collections\ArrayCollection {#15607 …}
    #unitsTotal: 0
    #adjustments: Doctrine\Common\Collections\ArrayCollection {#15608 …}
    #adjustmentsTotal: 0
    #productBundleOrderItems: Doctrine\Common\Collections\ArrayCollection {#15604 …}
  }
}
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 {#15583
  -cart: App\Entity\Order\Order {#8427 …}
  -cartItem: App\Entity\Order\OrderItem {#15578
    #vendor: null
    #version: 1
    #variant: App\Entity\Product\ProductVariant {#6893 …}
    #productName: null
    #variantName: null
    #id: null
    #order: null
    #quantity: 1
    #unitPrice: 0
    #total: 0
    #immutable: false
    #units: Doctrine\Common\Collections\ArrayCollection {#15607 …}
    #unitsTotal: 0
    #adjustments: Doctrine\Common\Collections\ArrayCollection {#15608 …}
    #adjustmentsTotal: 0
    #productBundleOrderItems: Doctrine\Common\Collections\ArrayCollection {#15604 …}
  }
}
same as passed value
product
App\Entity\Product\Product {#6343
  #variantSelectionMethod: "choice"
  #productTaxons: Doctrine\ORM\PersistentCollection {#6885 …}
  #channels: Doctrine\ORM\PersistentCollection {#6348 …}
  #mainTaxon: Proxies\__CG__\App\Entity\Taxonomy\Taxon {#6026 …}
  #reviews: Doctrine\ORM\PersistentCollection {#6879 …}
  #averageRating: 0.0
  #images: Doctrine\ORM\PersistentCollection {#6422 …}
  #id: 16
  #code: "ELECTRODES-ADULTES-M5071A"
  #attributes: Doctrine\ORM\PersistentCollection {#6651 …}
  #variants: Doctrine\ORM\PersistentCollection {#6890 …}
  #options: Doctrine\ORM\PersistentCollection {#6732 …}
  #associations: Doctrine\ORM\PersistentCollection {#6692 …}
  #createdAt: DateTime @1689934163 {#6446
    date: 2023-07-21 12:09:23.0 Europe/Paris (+02:00)
  }
  #updatedAt: DateTime @1689944789 {#6462
    date: 2023-07-21 15:06:29.0 Europe/Paris (+02:00)
  }
  #enabled: true
  #translations: Doctrine\ORM\PersistentCollection {#6880 …}
  #translationsCache: [
    "fr_FR" => App\Entity\Product\ProductTranslation {#6882
      #shortDescription: """
        <ul>\r\n
        \t<li>Manipulation facile</li>\r\n
        \t<li>Convient aux victimes pesant plus de 25kg ou ag&eacute;es de plus de 8 ans.</li>\r\n
        \t<li>Adh&eacute;sives et jetables</li>\r\n
        \t<li>Dur&eacute;e de vie 2 ans</li>\r\n
        </ul>
        """
      #id: 16
      #name: "Paire d'électrodes adultes pour défibrillateur HeartStart HS1"
      #slug: "paire-d-electrodes-adultes-pour-defibrillateur-heartstart-hs1"
      #description: """
        <p>Les &eacute;lectrodes HeartStart SMART pour adultes doivent &ecirc;tre utilis&eacute;es en cas d&#39;arr&ecirc;t cardiaque sur les victimes pesant plus de 25Kg ou ag&eacute;es de plus de 8 ans.</p>\r\n
        \r\n
        <p>A&nbsp;remplacer tous les deux ans.</p>\r\n
        \r\n
        <p>Les &eacute;lectodes ne sont pas recyclables et pourront &ecirc;tre jet&eacute;es dans une poubelle de type &quot;m&eacute;nager&quot;.</p>
        """
      #metaKeywords: null
      #metaDescription: null
      #locale: "fr_FR"
      #translatable: App\Entity\Product\Product {#6343}
    }
  ]
  #currentLocale: "fr_FR"
  #currentTranslation: null
  #fallbackLocale: "fr_FR"
  #productBundle: null
  #vendor: Proxies\__CG__\App\Entity\Vendor\Vendor {#6459 …}
}
same as passed value

Resolved Options

View Variables