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 {#4356
  -cart: App\Entity\Order\Order {#4131 …}
  -cartItem: App\Entity\Order\OrderItem {#3724
    #version: 1
    #variant: App\Entity\Product\ProductVariant {#4320 …}
    #productName: null
    #variantName: null
    #id: null
    #order: null
    #quantity: 1
    #unitPrice: 0
    #total: 0
    #immutable: false
    #units: Doctrine\Common\Collections\ArrayCollection {#4163 …}
    #unitsTotal: 0
    #adjustments: Doctrine\Common\Collections\ArrayCollection {#4164 …}
    #adjustmentsTotal: 0
  }
}
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 {#4356
  -cart: App\Entity\Order\Order {#4131 …}
  -cartItem: App\Entity\Order\OrderItem {#3724
    #version: 1
    #variant: App\Entity\Product\ProductVariant {#4320 …}
    #productName: null
    #variantName: null
    #id: null
    #order: null
    #quantity: 1
    #unitPrice: 0
    #total: 0
    #immutable: false
    #units: Doctrine\Common\Collections\ArrayCollection {#4163 …}
    #unitsTotal: 0
    #adjustments: Doctrine\Common\Collections\ArrayCollection {#4164 …}
    #adjustmentsTotal: 0
  }
}
same as passed value
product
App\Entity\Product\Product {#4165
  +synced_at: DateTime @1717409462 {#4143
    date: 2024-06-03 10:11:02.0 UTC (+00:00)
  }
  +medias: null
  #variantSelectionMethod: "choice"
  #productTaxons: Doctrine\ORM\PersistentCollection {#4193 …}
  #channels: Doctrine\ORM\PersistentCollection {#4208 …}
  #mainTaxon: Proxies\__CG__\App\Entity\Taxonomy\Taxon {#4169 …}
  #reviews: Doctrine\ORM\PersistentCollection {#4294 …}
  #averageRating: 0.0
  #images: Doctrine\ORM\PersistentCollection {#4206 …}
  #id: 2121
  #code: "575601025ARXUU"
  #attributes: Doctrine\ORM\PersistentCollection {#4225 …}
  #variants: Doctrine\ORM\PersistentCollection {#4254 …}
  #options: Doctrine\ORM\PersistentCollection {#4279 …}
  #associations: Doctrine\ORM\PersistentCollection {#4266 …}
  #createdAt: DateTime @1679904780 {#4144
    date: 2023-03-27 08:13:00.0 UTC (+00:00)
  }
  #updatedAt: DateTime @1717409466 {#4145
    date: 2024-06-03 10:11:06.0 UTC (+00:00)
  }
  #enabled: true
  #translations: Doctrine\ORM\PersistentCollection {#4183 …}
  #translationsCache: []
  #currentLocale: "fr_FR"
  #currentTranslation: null
  #fallbackLocale: "fr_FR"
}
same as passed value

Resolved Options

View Variables