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 {#13628
  -cart: App\Entity\Order\Order {#8891 …}
  -cartItem: App\Entity\Order\OrderItem {#13606
    -cardSender: null
    -cardRecipientEmail: null
    -cardRecipientName: null
    -cardText: null
    -cardType: null
    #version: 1
    #variant: App\Entity\Product\ProductVariant {#6992 …}
    #productName: null
    #variantName: null
    #id: null
    #order: null
    #quantity: 1
    #unitPrice: 0
    #total: 0
    #immutable: false
    #units: Doctrine\Common\Collections\ArrayCollection {#13636 …}
    #unitsTotal: 0
    #adjustments: Doctrine\Common\Collections\ArrayCollection {#13637 …}
    #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 {#13628
  -cart: App\Entity\Order\Order {#8891 …}
  -cartItem: App\Entity\Order\OrderItem {#13606
    -cardSender: null
    -cardRecipientEmail: null
    -cardRecipientName: null
    -cardText: null
    -cardType: null
    #version: 1
    #variant: App\Entity\Product\ProductVariant {#6992 …}
    #productName: null
    #variantName: null
    #id: null
    #order: null
    #quantity: 1
    #unitPrice: 0
    #total: 0
    #immutable: false
    #units: Doctrine\Common\Collections\ArrayCollection {#13636 …}
    #unitsTotal: 0
    #adjustments: Doctrine\Common\Collections\ArrayCollection {#13637 …}
    #adjustmentsTotal: 0
  }
}
same as passed value
product
App\Entity\Product\Product {#6346
  #giftCard: false
  -orderweight: 0
  -homepageweight: 0
  -datedispofrom: null
  -datedispoto: null
  -video: null
  #variantSelectionMethod: "choice"
  #productTaxons: Doctrine\ORM\PersistentCollection {#6464 …}
  #channels: Doctrine\ORM\PersistentCollection {#6496 …}
  #mainTaxon: Proxies\__CG__\App\Entity\Taxonomy\Taxon {#6481 …}
  #reviews: Doctrine\ORM\PersistentCollection {#6981 …}
  #averageRating: 0.0
  #images: Doctrine\ORM\PersistentCollection {#6482 …}
  #id: 76
  #code: "242c"
  #attributes: Doctrine\ORM\PersistentCollection {#6622 …}
  #variants: Doctrine\ORM\PersistentCollection {#6679 …}
  #options: Doctrine\ORM\PersistentCollection {#6828 …}
  #associations: Doctrine\ORM\PersistentCollection {#6788 …}
  #createdAt: DateTime @1626093027 {#6438
    date: 2021-07-12 14:30:27.0 Europe/Berlin (+02:00)
  }
  #updatedAt: DateTime @1742557557 {#6435
    date: 2025-03-21 12:45:57.0 Europe/Berlin (+01:00)
  }
  #enabled: true
  #translations: Doctrine\ORM\PersistentCollection {#6982 …}
  #translationsCache: [
    "fr" => App\Entity\Product\ProductTranslation {#6984
      -dispo_description: null
      #shortDescription: "Fermier et au lait cru, incontournable sur un plateau."
      #id: 76
      #name: "COUFFY"
      #slug: "selles-sur-couffy"
      #description: "<p>Dans cette r&eacute;gion solognote, entre for&ecirc;ts et marais, la tradition de fabrication de petits fromages de ch&egrave;vre est ancr&eacute;e depuis bien longtemps. Le savoir-faire transmis de m&egrave;re en fille permettait de nourrir la famille et de vendre le surplus sur les march&eacute;s locaux, voire Orl&eacute;ans ou Paris. Aujourd&rsquo;hui, la production rayonne partout en France, excellente promotion pour la Sologne dont les prairies naturelles sont inscrites au r&eacute;pertoire fran&ccedil;ais de la biodiversit&eacute;.</p>"
      #metaKeywords: "Couffy, fromage, fromage de chèvre, lait cru, fermier"
      #metaDescription: "Découvrez le Couffy, un fromage fondant et crémeux"
      #locale: "fr"
      #translatable: App\Entity\Product\Product {#6346}
    }
  ]
  #currentLocale: "fr"
  #currentTranslation: null
  #fallbackLocale: "fr"
}
same as passed value

Resolved Options

View Variables