Dumped Contents
In
CategoryController.php
line 49:
$products = $categoryMgr->getProducts($category,[],[],1,$nbByPage);
$productCount = $categoryMgr->getProductsCount($category);
dump($category);
dump($products);
$nbPages = ceil($productCount/$nbByPage);
App\Entity\Category {#706
#languageId: 4
#currentLocale: "fr"
#tranlatedEntity: "CategoryDescription"
-id: 2577
-image: null
-parent: Proxies\__CG__\App\Entity\Category {#883
#languageId: null
#currentLocale: null
#tranlatedEntity: "CategoryDescription"
-id: 2567
-image: null
-parent: null
-children: null
-descriptions: []
-extraFields: []
-pictures: []
-sortOrder: "0"
-dateAdded: null
-lastModified: null
-categoriesBest: null
-affichage: "1"
-sousmenu: "1"
-index: "1"
-hideChildren: "0"
-position: "0"
-menuSpacer: "0"
-code: "0"
-file: null
-temp: null
-currentPath: null
+__isInitialized__: false
…2
}
-children: Doctrine\ORM\PersistentCollection {#882
#collection: Doctrine\Common\Collections\ArrayCollection {#881
-elements: []
}
#initialized: false
-snapshot: []
-owner: App\Entity\Category {#706}
-association: array:16 [ …16]
-em: Doctrine\ORM\EntityManager {#403 …11}
-backRefFieldName: "parent"
-typeClass: Doctrine\ORM\Mapping\ClassMetadata {#566 …}
-isDirty: false
}
-descriptions: Doctrine\ORM\PersistentCollection {#947
#collection: Doctrine\Common\Collections\ArrayCollection {#946
-elements: array:2 [
0 => App\Entity\CategoryDescription {#1875
-id: 9265
-category: App\Entity\Category {#706}
-language: Proxies\__CG__\App\Entity\Language {#1906
-id: 1
-name: null
-code: null
-image: null
-directory: null
-sortOrder: null
+__isInitialized__: false
…2
}
-name: "Tie-off stake"
-shortName: null
-headingTitle: null
-description: null
-headTitleTag: null
-headDescTag: null
-headKeywordsTag: null
-htcTitleTag: null
-htcDescTag: null
-htcKeywordsTag: null
-htcDescription: null
-descriptionBas: null
-tags: null
-url: null
-menuPrefix: null
-menuSuffix: null
-menuBanner: null
}
1 => App\Entity\CategoryDescription {#1905
-id: 9266
-category: App\Entity\Category {#706}
-language: Proxies\__CG__\App\Entity\Language {#1904
-id: 4
-name: null
-code: null
-image: null
-directory: null
-sortOrder: null
+__isInitialized__: false
…2
}
-name: "Piquet d'attache"
-shortName: null
-headingTitle: null
-description: null
-headTitleTag: null
-headDescTag: null
-headKeywordsTag: null
-htcTitleTag: null
-htcDescTag: null
-htcKeywordsTag: null
-htcDescription: null
-descriptionBas: null
-tags: null
-url: null
-menuPrefix: null
-menuSuffix: null
-menuBanner: null
}
]
}
#initialized: true
-snapshot: array:2 [ …2]
-owner: App\Entity\Category {#706}
-association: array:15 [ …15]
-em: Doctrine\ORM\EntityManager {#403 …11}
-backRefFieldName: "category"
-typeClass: Doctrine\ORM\Mapping\ClassMetadata {#880 …}
-isDirty: false
}
-extraFields: Doctrine\ORM\PersistentCollection {#977
#collection: Doctrine\Common\Collections\ArrayCollection {#976
-elements: []
}
#initialized: false
-snapshot: []
-owner: App\Entity\Category {#706}
-association: array:15 [ …15]
-em: Doctrine\ORM\EntityManager {#403 …11}
-backRefFieldName: "category"
-typeClass: Doctrine\ORM\Mapping\ClassMetadata {#944 …}
-isDirty: false
}
-pictures: Doctrine\ORM\PersistentCollection {#999
#collection: Doctrine\Common\Collections\ArrayCollection {#997
-elements: []
}
#initialized: false
-snapshot: []
-owner: App\Entity\Category {#706}
-association: array:15 [ …15]
-em: Doctrine\ORM\EntityManager {#403 …11}
-backRefFieldName: "category"
-typeClass: Doctrine\ORM\Mapping\ClassMetadata {#1056 …}
-isDirty: false
}
-sortOrder: 0
-dateAdded: null
-lastModified: null
-categoriesBest: null
-affichage: 1
-sousmenu: 1
-index: 1
-hideChildren: 0
-position: "0"
-menuSpacer: false
-code: "v_d_es_tieoffstake"
-file: null
-temp: null
-currentPath: null
}
In
CategoryController.php
line 50:
$productCount = $categoryMgr->getProductsCount($category);
dump($category);
dump($products);
$nbPages = ceil($productCount/$nbByPage);
$path = $em->getRepository(Category::class)->getPath($category->getParent());
array:6 [
0 => Proxies\__CG__\App\Entity\Product {#3044
#languageId: null
#currentLocale: null
#tranlatedEntity: "ProductDescription"
-id: 21433
-attributes: null
-children: []
-parent: null
-productModel: null
-descriptions: []
-pictures: []
-manufacturer: null
-countryRestrictions: null
-extraFields: []
-prices: []
-quantity: "0"
-model: null
-modelSAP: null
-ean: null
-image: null
-imageMed: null
-imageLrg: null
-imageSm1: null
-imageXl1: null
-imageSm2: null
-imageXl2: null
-imageSm3: null
-imageXl3: null
-imageSm4: null
-imageXl4: null
-imageSm5: null
-imageXl5: null
-imageSm6: null
-imageXl6: null
-price: "0.0000"
-ecotax: "0.0000"
-dateAdded: null
-lastModified: null
-dateAvailable: null
-weight: "0.00"
-status: "0"
-taxClass: null
-ordered: "0"
-price1: "0.0000"
-price2: "0.0000"
-price3: "0.0000"
-price4: "0.0000"
-price5: "0.0000"
-price6: "0.0000"
-price7: "0.0000"
-price8: "0.0000"
-price9: "0.0000"
-price10: "0.0000"
-price11: "0.0000"
-price1Qty: "0"
-price2Qty: "0"
-price3Qty: "0"
-price4Qty: "0"
-price5Qty: "0"
-price6Qty: "0"
-price7Qty: "0"
-price8Qty: "0"
-price9Qty: "0"
-price10Qty: "0"
-price11Qty: "0"
-productsQtyBlocks: "1"
-soleil: "0"
-limitePanier: "0"
-page: null
-guaranty: "0"
-defaultCategoryId: 0
-defaultCategory: null
-index: "1"
-mvente: "1"
-strategique: "0"
-reapproNon: "0"
-multiple: 1
-origin: 1
-gift: "0"
-type: null
-welcome: "1"
-code: null
-isDefaultVariant: false
+__isInitialized__: false
…2
}
1 => Proxies\__CG__\App\Entity\Product {#3042
#languageId: null
#currentLocale: null
#tranlatedEntity: "ProductDescription"
-id: 21435
-attributes: null
-children: []
-parent: null
-productModel: null
-descriptions: []
-pictures: []
-manufacturer: null
-countryRestrictions: null
-extraFields: []
-prices: []
-quantity: "0"
-model: null
-modelSAP: null
-ean: null
-image: null
-imageMed: null
-imageLrg: null
-imageSm1: null
-imageXl1: null
-imageSm2: null
-imageXl2: null
-imageSm3: null
-imageXl3: null
-imageSm4: null
-imageXl4: null
-imageSm5: null
-imageXl5: null
-imageSm6: null
-imageXl6: null
-price: "0.0000"
-ecotax: "0.0000"
-dateAdded: null
-lastModified: null
-dateAvailable: null
-weight: "0.00"
-status: "0"
-taxClass: null
-ordered: "0"
-price1: "0.0000"
-price2: "0.0000"
-price3: "0.0000"
-price4: "0.0000"
-price5: "0.0000"
-price6: "0.0000"
-price7: "0.0000"
-price8: "0.0000"
-price9: "0.0000"
-price10: "0.0000"
-price11: "0.0000"
-price1Qty: "0"
-price2Qty: "0"
-price3Qty: "0"
-price4Qty: "0"
-price5Qty: "0"
-price6Qty: "0"
-price7Qty: "0"
-price8Qty: "0"
-price9Qty: "0"
-price10Qty: "0"
-price11Qty: "0"
-productsQtyBlocks: "1"
-soleil: "0"
-limitePanier: "0"
-page: null
-guaranty: "0"
-defaultCategoryId: 0
-defaultCategory: null
-index: "1"
-mvente: "1"
-strategique: "0"
-reapproNon: "0"
-multiple: 1
-origin: 1
-gift: "0"
-type: null
-welcome: "1"
-code: null
-isDefaultVariant: false
+__isInitialized__: false
…2
}
2 => Proxies\__CG__\App\Entity\Product {#3040
#languageId: null
#currentLocale: null
#tranlatedEntity: "ProductDescription"
-id: 21439
-attributes: null
-children: []
-parent: null
-productModel: null
-descriptions: []
-pictures: []
-manufacturer: null
-countryRestrictions: null
-extraFields: []
-prices: []
-quantity: "0"
-model: null
-modelSAP: null
-ean: null
-image: null
-imageMed: null
-imageLrg: null
-imageSm1: null
-imageXl1: null
-imageSm2: null
-imageXl2: null
-imageSm3: null
-imageXl3: null
-imageSm4: null
-imageXl4: null
-imageSm5: null
-imageXl5: null
-imageSm6: null
-imageXl6: null
-price: "0.0000"
-ecotax: "0.0000"
-dateAdded: null
-lastModified: null
-dateAvailable: null
-weight: "0.00"
-status: "0"
-taxClass: null
-ordered: "0"
-price1: "0.0000"
-price2: "0.0000"
-price3: "0.0000"
-price4: "0.0000"
-price5: "0.0000"
-price6: "0.0000"
-price7: "0.0000"
-price8: "0.0000"
-price9: "0.0000"
-price10: "0.0000"
-price11: "0.0000"
-price1Qty: "0"
-price2Qty: "0"
-price3Qty: "0"
-price4Qty: "0"
-price5Qty: "0"
-price6Qty: "0"
-price7Qty: "0"
-price8Qty: "0"
-price9Qty: "0"
-price10Qty: "0"
-price11Qty: "0"
-productsQtyBlocks: "1"
-soleil: "0"
-limitePanier: "0"
-page: null
-guaranty: "0"
-defaultCategoryId: 0
-defaultCategory: null
-index: "1"
-mvente: "1"
-strategique: "0"
-reapproNon: "0"
-multiple: 1
-origin: 1
-gift: "0"
-type: null
-welcome: "1"
-code: null
-isDefaultVariant: false
+__isInitialized__: false
…2
}
3 => Proxies\__CG__\App\Entity\Product {#3038
#languageId: null
#currentLocale: null
#tranlatedEntity: "ProductDescription"
-id: 21440
-attributes: null
-children: []
-parent: null
-productModel: null
-descriptions: []
-pictures: []
-manufacturer: null
-countryRestrictions: null
-extraFields: []
-prices: []
-quantity: "0"
-model: null
-modelSAP: null
-ean: null
-image: null
-imageMed: null
-imageLrg: null
-imageSm1: null
-imageXl1: null
-imageSm2: null
-imageXl2: null
-imageSm3: null
-imageXl3: null
-imageSm4: null
-imageXl4: null
-imageSm5: null
-imageXl5: null
-imageSm6: null
-imageXl6: null
-price: "0.0000"
-ecotax: "0.0000"
-dateAdded: null
-lastModified: null
-dateAvailable: null
-weight: "0.00"
-status: "0"
-taxClass: null
-ordered: "0"
-price1: "0.0000"
-price2: "0.0000"
-price3: "0.0000"
-price4: "0.0000"
-price5: "0.0000"
-price6: "0.0000"
-price7: "0.0000"
-price8: "0.0000"
-price9: "0.0000"
-price10: "0.0000"
-price11: "0.0000"
-price1Qty: "0"
-price2Qty: "0"
-price3Qty: "0"
-price4Qty: "0"
-price5Qty: "0"
-price6Qty: "0"
-price7Qty: "0"
-price8Qty: "0"
-price9Qty: "0"
-price10Qty: "0"
-price11Qty: "0"
-productsQtyBlocks: "1"
-soleil: "0"
-limitePanier: "0"
-page: null
-guaranty: "0"
-defaultCategoryId: 0
-defaultCategory: null
-index: "1"
-mvente: "1"
-strategique: "0"
-reapproNon: "0"
-multiple: 1
-origin: 1
-gift: "0"
-type: null
-welcome: "1"
-code: null
-isDefaultVariant: false
+__isInitialized__: false
…2
}
4 => Proxies\__CG__\App\Entity\Product {#3036
#languageId: null
#currentLocale: null
#tranlatedEntity: "ProductDescription"
-id: 21441
-attributes: null
-children: []
-parent: null
-productModel: null
-descriptions: []
-pictures: []
-manufacturer: null
-countryRestrictions: null
-extraFields: []
-prices: []
-quantity: "0"
-model: null
-modelSAP: null
-ean: null
-image: null
-imageMed: null
-imageLrg: null
-imageSm1: null
-imageXl1: null
-imageSm2: null
-imageXl2: null
-imageSm3: null
-imageXl3: null
-imageSm4: null
-imageXl4: null
-imageSm5: null
-imageXl5: null
-imageSm6: null
-imageXl6: null
-price: "0.0000"
-ecotax: "0.0000"
-dateAdded: null
-lastModified: null
-dateAvailable: null
-weight: "0.00"
-status: "0"
-taxClass: null
-ordered: "0"
-price1: "0.0000"
-price2: "0.0000"
-price3: "0.0000"
-price4: "0.0000"
-price5: "0.0000"
-price6: "0.0000"
-price7: "0.0000"
-price8: "0.0000"
-price9: "0.0000"
-price10: "0.0000"
-price11: "0.0000"
-price1Qty: "0"
-price2Qty: "0"
-price3Qty: "0"
-price4Qty: "0"
-price5Qty: "0"
-price6Qty: "0"
-price7Qty: "0"
-price8Qty: "0"
-price9Qty: "0"
-price10Qty: "0"
-price11Qty: "0"
-productsQtyBlocks: "1"
-soleil: "0"
-limitePanier: "0"
-page: null
-guaranty: "0"
-defaultCategoryId: 0
-defaultCategory: null
-index: "1"
-mvente: "1"
-strategique: "0"
-reapproNon: "0"
-multiple: 1
-origin: 1
-gift: "0"
-type: null
-welcome: "1"
-code: null
-isDefaultVariant: false
+__isInitialized__: false
…2
}
5 => Proxies\__CG__\App\Entity\Product {#3034
#languageId: null
#currentLocale: null
#tranlatedEntity: "ProductDescription"
-id: 26986
-attributes: null
-children: []
-parent: null
-productModel: null
-descriptions: []
-pictures: []
-manufacturer: null
-countryRestrictions: null
-extraFields: []
-prices: []
-quantity: "0"
-model: null
-modelSAP: null
-ean: null
-image: null
-imageMed: null
-imageLrg: null
-imageSm1: null
-imageXl1: null
-imageSm2: null
-imageXl2: null
-imageSm3: null
-imageXl3: null
-imageSm4: null
-imageXl4: null
-imageSm5: null
-imageXl5: null
-imageSm6: null
-imageXl6: null
-price: "0.0000"
-ecotax: "0.0000"
-dateAdded: null
-lastModified: null
-dateAvailable: null
-weight: "0.00"
-status: "0"
-taxClass: null
-ordered: "0"
-price1: "0.0000"
-price2: "0.0000"
-price3: "0.0000"
-price4: "0.0000"
-price5: "0.0000"
-price6: "0.0000"
-price7: "0.0000"
-price8: "0.0000"
-price9: "0.0000"
-price10: "0.0000"
-price11: "0.0000"
-price1Qty: "0"
-price2Qty: "0"
-price3Qty: "0"
-price4Qty: "0"
-price5Qty: "0"
-price6Qty: "0"
-price7Qty: "0"
-price8Qty: "0"
-price9Qty: "0"
-price10Qty: "0"
-price11Qty: "0"
-productsQtyBlocks: "1"
-soleil: "0"
-limitePanier: "0"
-page: null
-guaranty: "0"
-defaultCategoryId: 0
-defaultCategory: null
-index: "1"
-mvente: "1"
-strategique: "0"
-reapproNon: "0"
-multiple: 1
-origin: 1
-gift: "0"
-type: null
-welcome: "1"
-code: null
-isDefaultVariant: false
+__isInitialized__: false
…2
}
]