Skip to content

Docs: "Custom Hydration Modes" code sample is deprecated #8322

Open
@ThomasLandauer

Description

@ThomasLandauer

When following https://www.doctrine-project.org/projects/doctrine-orm/en/2.7/reference/dql-doctrine-query-language.html#custom-hydration-modes I'm getting:

Call to deprecated method fetchAll() of class Doctrine\DBAL\Driver\ResultStatement:
Use fetchAllNumeric(), fetchAllAssociative() or fetchFirstColumn() instead.

I wanted to fix it, but it looks like everything in ResultStatement is deprecated. So what's the new way of setting up a custom hydrator?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions