pixelant / pxa_product_manager

Product Manager. Allow to create and list products on a site. Create dynamical attributes for products. Filter by categories and attributes
11 stars 13 forks source link

Call to undefined method Doctrine\DBAL\Driver\Mysqli\MysqliStatement::fetchAllAssociative() #285

Closed slymbo closed 2 years ago

slymbo commented 3 years ago

pxa_product_manager_10 (v10_alpha) branch

https://github.com/pixelant/pxa_product_manager/tree/v10_alpha

The problem the current versions of Typo3 "10.x" didn't support the new version of doctrine.

It's better if you replace the current function fetchAllAssociative() with the old one fetchAll() .

This is the list of function using fetchAllAssociative()

protected function fetchDuplicateAttributeValues()
public static function findAttributeOptions(int $attributeId, string $selectFields = '*')
protected function fetchDuplicateAttributeValues()
protected function fetchAttributeValueData(int $attribute, int $product)
protected function fetchMissingChildRelations()
pixelmatseriks commented 3 years ago

Hi, thanks for taking the time to report this issue. What version of doctrine/dbal do you have? If I change to fetchAll(), I get a deprecation notice "@deprecated Use fetchAllNumeric(), fetchAllAssociative() or fetchFirstColumn() instead."