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 {#13656
  -cart: App\Entity\Order\Order {#8894 …}
  -cartItem: App\Entity\Order\OrderItem {#13634
    -cardSender: null
    -cardRecipientEmail: null
    -cardRecipientName: null
    -cardText: null
    -cardType: null
    #version: 1
    #variant: App\Entity\Product\ProductVariant {#6944 …}
    #productName: null
    #variantName: null
    #id: null
    #order: null
    #quantity: 1
    #unitPrice: 0
    #total: 0
    #immutable: false
    #units: Doctrine\Common\Collections\ArrayCollection {#13664 …}
    #unitsTotal: 0
    #adjustments: Doctrine\Common\Collections\ArrayCollection {#13665 …}
    #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 {#13656
  -cart: App\Entity\Order\Order {#8894 …}
  -cartItem: App\Entity\Order\OrderItem {#13634
    -cardSender: null
    -cardRecipientEmail: null
    -cardRecipientName: null
    -cardText: null
    -cardType: null
    #version: 1
    #variant: App\Entity\Product\ProductVariant {#6944 …}
    #productName: null
    #variantName: null
    #id: null
    #order: null
    #quantity: 1
    #unitPrice: 0
    #total: 0
    #immutable: false
    #units: Doctrine\Common\Collections\ArrayCollection {#13664 …}
    #unitsTotal: 0
    #adjustments: Doctrine\Common\Collections\ArrayCollection {#13665 …}
    #adjustmentsTotal: 0
  }
}
same as passed value
product
App\Entity\Product\Product {#6298
  #giftCard: false
  -orderweight: 0
  -homepageweight: 0
  -datedispofrom: null
  -datedispoto: null
  -video: null
  #variantSelectionMethod: "choice"
  #productTaxons: Doctrine\ORM\PersistentCollection {#6416 …}
  #channels: Doctrine\ORM\PersistentCollection {#6448 …}
  #mainTaxon: Proxies\__CG__\App\Entity\Taxonomy\Taxon {#6433 …}
  #reviews: Doctrine\ORM\PersistentCollection {#6933 …}
  #averageRating: 0.0
  #images: Doctrine\ORM\PersistentCollection {#6434 …}
  #id: 71
  #code: "399"
  #attributes: Doctrine\ORM\PersistentCollection {#6574 …}
  #variants: Doctrine\ORM\PersistentCollection {#6631 …}
  #options: Doctrine\ORM\PersistentCollection {#6780 …}
  #associations: Doctrine\ORM\PersistentCollection {#6740 …}
  #createdAt: DateTime @1626093025 {#6390
    date: 2021-07-12 14:30:25.0 Europe/Berlin (+02:00)
  }
  #updatedAt: DateTime @1721306100 {#6387
    date: 2024-07-18 14:35:00.0 Europe/Berlin (+02:00)
  }
  #enabled: true
  #translations: Doctrine\ORM\PersistentCollection {#6934 …}
  #translationsCache: [
    "fr" => App\Entity\Product\ProductTranslation {#6936
      -dispo_description: null
      #shortDescription: "Un fromage de caractère se cache derrière ce cœur !"
      #id: 71
      #name: "NEUFCHÂTEL"
      #slug: "neufchatel-aop"
      #description: "<p>Fromage moins connu et bien que plus ancien, que son cousin le Camembert de Normandie, le Neuch&acirc;tel offre avant tout un superbe jeu de textures, entre flore &eacute;paisse et souple, cr&egrave;me coulante sous-jacente et c&oelig;ur mousseux serr&eacute;. Et s&rsquo;il est aussi puissant et long en bouche qu&rsquo;il semble inoffensif, on saura utiliser sa forme de c&oelig;ur originale pour d&eacute;clarer sa flamme &agrave; la personne aim&eacute;e&hellip; ou au fromage !</p>"
      #metaKeywords: "Le Neufchâtel AOP,  fromage, lait de vache, lait cru, normandie"
      #metaDescription: "Découvrez le Neufchâtel AOP, le plus ancien des fromages normands."
      #locale: "fr"
      #translatable: App\Entity\Product\Product {#6298}
    }
  ]
  #currentLocale: "fr"
  #currentTranslation: null
  #fallbackLocale: "fr"
}
same as passed value

Resolved Options

View Variables