Closed (fixed)
Project:
Domain Path
Version:
2.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
17 Dec 2025 at 22:58 UTC
Updated:
2 Jan 2026 at 14:14 UTC
Jump to comment: Most recent
Try to copycat core code as much as possible.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
mably commentedComment #4
lincoln-batsirayi commented@mably I've tested this, it seems to be working well but i do get this error whilst editing content from time to time
And i can only get rid of it by clearing the cache (but it does come back), so i updated the code snippet from:
$results = $select->execute()->fetchAll(FetchAs::Associative);
to
$results = $select->execute()->fetchAll(\PDO::FETCH_ASSOC);
Based what other core and contrib modules are doing and it fixed the error completely, so if you update the MR to fix that i think it should be good to go in my opinion.
Comment #5
mably commentedLooks like it's related to this issue:
#3487851: Replace \PDO::FETCH_* constants to indicate fetch mode with an enumeration
So Drupal 11+ only.
Comment #7
mably commented