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: 1
#currentLocale: "en"
#tranlatedEntity: "CategoryDescription"
-id: 2653
-image: null
-parent: Proxies\__CG__\App\Entity\Category {#883
#languageId: null
#currentLocale: null
#tranlatedEntity: "CategoryDescription"
-id: 2643
-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: 9417
-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: "Slow-feeder bowl"
-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: 9418
-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: "Gamelle anti-glouton"
-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_c_m_slowfeederbowl"
-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());
[]