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 {#13654
  -cart: App\Entity\Order\Order {#8894 …}
  -cartItem: App\Entity\Order\OrderItem {#13632
    -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 {#13662 …}
    #unitsTotal: 0
    #adjustments: Doctrine\Common\Collections\ArrayCollection {#13663 …}
    #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 {#13654
  -cart: App\Entity\Order\Order {#8894 …}
  -cartItem: App\Entity\Order\OrderItem {#13632
    -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 {#13662 …}
    #unitsTotal: 0
    #adjustments: Doctrine\Common\Collections\ArrayCollection {#13663 …}
    #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: 82
  #code: "297g"
  #attributes: Doctrine\ORM\PersistentCollection {#6574 …}
  #variants: Doctrine\ORM\PersistentCollection {#6631 …}
  #options: Doctrine\ORM\PersistentCollection {#6780 …}
  #associations: Doctrine\ORM\PersistentCollection {#6740 …}
  #createdAt: DateTime @1626093028 {#6390
    date: 2021-07-12 14:30:28.0 Europe/Berlin (+02:00)
  }
  #updatedAt: DateTime @1720513756 {#6387
    date: 2024-07-09 10:29:16.0 Europe/Berlin (+02:00)
  }
  #enabled: true
  #translations: Doctrine\ORM\PersistentCollection {#6934 …}
  #translationsCache: [
    "fr" => App\Entity\Product\ProductTranslation {#6936
      -dispo_description: null
      #shortDescription: "Un lingot qui vaut bien plus que de l'or !"
      #id: 82
      #name: "LINGOT DES CAUSSES"
      #slug: "lingot-des-causses"
      #description: "<p>Le Lingot des Causses nous plonge sans finasser inutilement au c&oelig;ur de la ch&egrave;vrerie, au milieu des biquettes. Un vrai tr&eacute;sor caprin que ce lingot, c&oelig;ur mousseux nimb&eacute; d&#39;une cr&egrave;me dense et jubilatoire, tout en conservant une &eacute;tonnante fraicheur. Il nous vient d&#39;une tr&egrave;s belle ferme situ&eacute;e dans un environnement naturel aux confins du P&eacute;rigord et des Causses du Quercy, qui est aussi la zone de production du c&eacute;l&egrave;bre Rocamadour.</p>"
      #metaKeywords: "Lingot des Causses, fromage, lait de chèvre, lait cru"
      #metaDescription: "Découvrez le Lingot des Causses et son étonnante fraîcheur."
      #locale: "fr"
      #translatable: App\Entity\Product\Product {#6298}
    }
  ]
  #currentLocale: "fr"
  #currentTranslation: null
  #fallbackLocale: "fr"
}
same as passed value

Resolved Options

View Variables