Skip to content

Cannot set fetch mode - always set to PDO::FETCH_ASSOC #123

@Mariyo

Description

@Mariyo

Hi,
this is not a bug, but maybe feature request. It would be cool, if I would able to decide, which fetching mode will be used in results. I would like to get result as instances of object:

foreach ($db->application()->fethmode(PDO::FETCH_CLASS, 'MyApplicationClass') as $application) {
    // get all applications as instances of class: "MyApplicationClass"
    echo "$application->title\n"; // print application title
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions