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 {#18129
  -cart: App\Entity\Order\Order {#8110 …}
  -cartItem: App\Entity\Order\OrderItem {#18102
    #vendor: null
    #version: 1
    #variant: App\Entity\Product\ProductVariant {#17932 …}
    #productName: null
    #variantName: null
    #id: null
    #order: null
    #quantity: 1
    #unitPrice: 0
    #total: 0
    #immutable: false
    #units: Doctrine\Common\Collections\ArrayCollection {#18131 …}
    #unitsTotal: 0
    #adjustments: Doctrine\Common\Collections\ArrayCollection {#18132 …}
    #adjustmentsTotal: 0
    #productBundleOrderItems: Doctrine\Common\Collections\ArrayCollection {#18128 …}
  }
}
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 {#18129
  -cart: App\Entity\Order\Order {#8110 …}
  -cartItem: App\Entity\Order\OrderItem {#18102
    #vendor: null
    #version: 1
    #variant: App\Entity\Product\ProductVariant {#17932 …}
    #productName: null
    #variantName: null
    #id: null
    #order: null
    #quantity: 1
    #unitPrice: 0
    #total: 0
    #immutable: false
    #units: Doctrine\Common\Collections\ArrayCollection {#18131 …}
    #unitsTotal: 0
    #adjustments: Doctrine\Common\Collections\ArrayCollection {#18132 …}
    #adjustmentsTotal: 0
    #productBundleOrderItems: Doctrine\Common\Collections\ArrayCollection {#18128 …}
  }
}
same as passed value
product
App\Entity\Product\Product {#6878
  #variantSelectionMethod: "choice"
  #productTaxons: Doctrine\ORM\PersistentCollection {#6904 …}
  #channels: Doctrine\ORM\PersistentCollection {#6881 …}
  #mainTaxon: Proxies\__CG__\App\Entity\Taxonomy\Taxon {#6879 …}
  #reviews: Doctrine\ORM\PersistentCollection {#6898 …}
  #averageRating: 0.0
  #images: Doctrine\ORM\PersistentCollection {#6884 …}
  #id: 16
  #code: "ELECTRODES-ADULTES-M5071A"
  #attributes: Doctrine\ORM\PersistentCollection {#6890 …}
  #variants: Doctrine\ORM\PersistentCollection {#6886 …}
  #options: Doctrine\ORM\PersistentCollection {#6896 …}
  #associations: Doctrine\ORM\PersistentCollection {#6894 …}
  #createdAt: DateTime @1689934163 {#6876
    date: 2023-07-21 12:09:23.0 Europe/Paris (+02:00)
  }
  #updatedAt: DateTime @1689944789 {#6875
    date: 2023-07-21 15:06:29.0 Europe/Paris (+02:00)
  }
  #enabled: true
  #translations: Doctrine\ORM\PersistentCollection {#6901 …}
  #translationsCache: [
    "fr_FR" => App\Entity\Product\ProductTranslation {#6902
      #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 {#6878}
    }
  ]
  #currentLocale: "fr_FR"
  #currentTranslation: null
  #fallbackLocale: "fr_FR"
  #productBundle: null
  #vendor: Proxies\__CG__\App\Entity\Vendor\Vendor {#6880 …}
}
same as passed value

Resolved Options

View Variables