Forms
sylius_shop_add_to_cart
Form type:
"Sylius\Bundle\ShopBundle\Form\Type\AddToCartType"
Errors
This form has no errors.
Default Data
| Property | Value |
|---|---|
| Model Format | same as normalized format |
| Normalized Format | Sylius\Bundle\OrderBundle\Controller\AddToCartCommand {#12376 -cart: App\Entity\Order\Order {#12396 …} -cartItem: App\Entity\Order\OrderItem {#12397 #id: null #order: null #quantity: 1 #unitPrice: 0 #originalUnitPrice: 0 #total: 0 #immutable: false #units: Doctrine\Common\Collections\ArrayCollection {#12387 …} #unitsTotal: 0 #adjustments: Doctrine\Common\Collections\ArrayCollection {#12372 …} #adjustmentsTotal: 0 #version: 1 #variant: App\Entity\Product\ProductVariant {#7279 …} #productName: null #variantName: null } } |
| 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 {#12376 -cart: App\Entity\Order\Order {#12396 …} -cartItem: App\Entity\Order\OrderItem {#12397 #id: null #order: null #quantity: 1 #unitPrice: 0 #originalUnitPrice: 0 #total: 0 #immutable: false #units: Doctrine\Common\Collections\ArrayCollection {#12387 …} #unitsTotal: 0 #adjustments: Doctrine\Common\Collections\ArrayCollection {#12372 …} #adjustmentsTotal: 0 #version: 1 #variant: App\Entity\Product\ProductVariant {#7279 …} #productName: null #variantName: null } } |
same as passed value |
| product | App\Entity\Product\Product {#7393 #id: 88 #code: "Fake-Product" #attributes: Doctrine\ORM\PersistentCollection {#7885 …} #variants: Doctrine\ORM\PersistentCollection {#8098 …} #options: Doctrine\ORM\PersistentCollection {#8226 …} #associations: Doctrine\ORM\PersistentCollection {#8166 …} #createdAt: DateTime @1761583872 {#7401 : 2025-10-27 16:51:12.0 UTC (+00:00) } #updatedAt: DateTime @1761583874 {#7365 : 2025-10-27 16:51:14.0 UTC (+00:00) } #enabled: true #translations: Doctrine\ORM\PersistentCollection {#8225 …} #translationsCache: [ "en_GB" => App\Entity\Product\ProductTranslation {#8228 #locale: "en_GB" #translatable: App\Entity\Product\Product {#7393} #id: 697 #name: "Test Product" #slug: "test-product" #description: "this is just a test!" #metaKeywords: null #metaDescription: null #shortDescription: null } ] #currentLocale: "en_GB" #currentTranslation: null #fallbackLocale: "en_GB" #variantSelectionMethod: "choice" #productTaxons: Doctrine\ORM\PersistentCollection {#7539 …} #channels: Doctrine\ORM\PersistentCollection {#7744 …} #mainTaxon: null #reviews: Doctrine\ORM\PersistentCollection {#7661 …} #averageRating: 0.0 #images: Doctrine\ORM\PersistentCollection {#7746 …} #productType: null } |
same as passed value |
Resolved Options
| Option | Value |
|---|---|
| action | "" |
| allow_extra_fields | false |
| allow_file_upload | false |
| attr | [] |
| attr_translation_parameters | [] |
| auto_initialize | true |
| block_name | null |
| block_prefix | null |
| by_reference | true |
| compound | true |
| constraints | [] |
| csrf_field_name | "_token" |
| csrf_message | "The CSRF token is invalid. Please try to resubmit the form." |
| csrf_protection | true |
| csrf_token_id | null |
| csrf_token_manager | Symfony\Component\Security\Csrf\CsrfTokenManager {#7196 -generator: Symfony\Component\Security\Csrf\TokenGenerator\UriSafeTokenGenerator {#7195 …} -storage: Symfony\Component\Security\Csrf\TokenStorage\SessionTokenStorage {#7199 …} -namespace: Closure() {#7201 …} } |
| data | Sylius\Bundle\OrderBundle\Controller\AddToCartCommand {#12376 -cart: App\Entity\Order\Order {#12396 …} -cartItem: App\Entity\Order\OrderItem {#12397 #id: null #order: null #quantity: 1 #unitPrice: 0 #originalUnitPrice: 0 #total: 0 #immutable: false #units: Doctrine\Common\Collections\ArrayCollection {#12387 …} #unitsTotal: 0 #adjustments: Doctrine\Common\Collections\ArrayCollection {#12372 …} #adjustmentsTotal: 0 #version: 1 #variant: App\Entity\Product\ProductVariant {#7279 …} #productName: null #variantName: null } } |
| data_class | "Sylius\Bundle\OrderBundle\Controller\AddToCartCommand" |
| disabled | false |
| empty_data | Closure(FormInterface $form) {#12476 : "Symfony\Component\Form\Extension\Core\Type\FormType" : { : "Sylius\Bundle\OrderBundle\Controller\AddToCartCommand" } } |
| error_bubbling | true |
| error_mapping | [] |
| extra_fields_message | "This form should not contain extra fields." |
| form_attr | false |
| getter | null |
| help | null |
| help_attr | [] |
| help_html | false |
| help_translation_parameters | [] |
| inherit_data | false |
| invalid_message | "This value is not valid." |
| invalid_message_parameters | [] |
| is_empty_callback | null |
| label | null |
| label_attr | [] |
| label_format | null |
| label_html | false |
| label_translation_parameters | [] |
| mapped | true |
| method | "POST" |
| post_max_size_message | "The uploaded file was too large. Please try to upload a smaller file." |
| priority | 0 |
| product | App\Entity\Product\Product {#7393 #id: 88 #code: "Fake-Product" #attributes: Doctrine\ORM\PersistentCollection {#7885 …} #variants: Doctrine\ORM\PersistentCollection {#8098 …} #options: Doctrine\ORM\PersistentCollection {#8226 …} #associations: Doctrine\ORM\PersistentCollection {#8166 …} #createdAt: DateTime @1761583872 {#7401 : 2025-10-27 16:51:12.0 UTC (+00:00) } #updatedAt: DateTime @1761583874 {#7365 : 2025-10-27 16:51:14.0 UTC (+00:00) } #enabled: true #translations: Doctrine\ORM\PersistentCollection {#8225 …} #translationsCache: [ "en_GB" => App\Entity\Product\ProductTranslation {#8228 #locale: "en_GB" #translatable: App\Entity\Product\Product {#7393} #id: 697 #name: "Test Product" #slug: "test-product" #description: "this is just a test!" #metaKeywords: null #metaDescription: null #shortDescription: null } ] #currentLocale: "en_GB" #currentTranslation: null #fallbackLocale: "en_GB" #variantSelectionMethod: "choice" #productTaxons: Doctrine\ORM\PersistentCollection {#7539 …} #channels: Doctrine\ORM\PersistentCollection {#7744 …} #mainTaxon: null #reviews: Doctrine\ORM\PersistentCollection {#7661 …} #averageRating: 0.0 #images: Doctrine\ORM\PersistentCollection {#7746 …} #productType: null } |
| property_path | null |
| required | true |
| row_attr | [] |
| setter | null |
| translation_domain | null |
| trim | true |
| upload_max_size_message | Closure() {#12478 : "Symfony\Component\Form\Extension\Validator\Type\UploadValidatorExtension" : { : Symfony\Component\Translation\DataCollectorTranslator {#1398 …} : Closure() {#12477 …} : "validators" } } |
| validation_groups | [
"sylius"
] |
View Vars
| Variable | Value |
|---|---|
| action | "" |
| attr | [] |
| attr_translation_parameters | [] |
| block_prefixes | [ "form" "sylius_add_to_cart" "sylius_shop_add_to_cart" "_sylius_shop_add_to_cart" ] |
| cache_key | "_sylius_shop_add_to_cart_sylius_shop_add_to_cart" |
| compound | true |
| data | Sylius\Bundle\OrderBundle\Controller\AddToCartCommand {#12376 -cart: App\Entity\Order\Order {#12396 …} -cartItem: App\Entity\Order\OrderItem {#12397 #id: null #order: null #quantity: 1 #unitPrice: 0 #originalUnitPrice: 0 #total: 0 #immutable: false #units: Doctrine\Common\Collections\ArrayCollection {#12387 …} #unitsTotal: 0 #adjustments: Doctrine\Common\Collections\ArrayCollection {#12372 …} #adjustmentsTotal: 0 #version: 1 #variant: App\Entity\Product\ProductVariant {#7279 …} #productName: null #variantName: null } } |
| disabled | false |
| errors | Symfony\Component\Form\FormErrorIterator {#12521 -errors: [] -form: Symfony\Component\Form\Form {#12528 …} } |
| form | Symfony\Component\Form\FormView {#12479 …5} |
| full_name | "sylius_shop_add_to_cart" |
| help | null |
| help_attr | [] |
| help_html | false |
| help_translation_parameters | [] |
| id | "sylius_shop_add_to_cart" |
| label | null |
| label_attr | [] |
| label_format | null |
| label_html | false |
| label_translation_parameters | [] |
| method | "POST" |
| multipart | false |
| name | "sylius_shop_add_to_cart" |
| priority | 0 |
| required | true |
| row_attr | [] |
| submitted | false |
| translation_domain | null |
| unique_block_prefix | "_sylius_shop_add_to_cart" |
| valid | true |
| value | Sylius\Bundle\OrderBundle\Controller\AddToCartCommand {#12376 -cart: App\Entity\Order\Order {#12396 …} -cartItem: App\Entity\Order\OrderItem {#12397 #id: null #order: null #quantity: 1 #unitPrice: 0 #originalUnitPrice: 0 #total: 0 #immutable: false #units: Doctrine\Common\Collections\ArrayCollection {#12387 …} #unitsTotal: 0 #adjustments: Doctrine\Common\Collections\ArrayCollection {#12372 …} #adjustmentsTotal: 0 #version: 1 #variant: App\Entity\Product\ProductVariant {#7279 …} #productName: null #variantName: null } } |