terminal42 / contao-node

Manage content centrally as nodes and reuse them everywhere.
MIT License
29 stars 8 forks source link

Fix for DBAL 3 (Contao 4.13) #34

Closed dennisbohn closed 2 years ago

dennisbohn commented 2 years ago

I am getting the following error, when I try to create a node in Contao 4.13.

image

Contao 4.13 switched to DBAL 3 and doesnt support the methods fetchColumn, fetchAll and fetchAssoc anymore.

https://www.doctrine-project.org/2020/11/17/dbal-3.0.0.html

I changed fetchColumn to fetchOne, fetchAll to fetchAllAssociative and fetchAssoc to fetchAssociative which results in the same behaviour.

dennisbohn commented 2 years ago

Sorry for reopening. Found an additional method that wasnt supported anymore. fetchAssoc. I changed the files and renamed the branch. I think, the renaming of the branch caused the closing.

Toflar commented 2 years ago

Thanks @dennisbohn! :)