Skip to content

Conflict over doctrine output walker #181

@aminin

Description

@aminin

In the following code the TranslationWalker will be replaced by KnpPaginator and won't be applied.

$page = 1;
$limit = 1000;

$query = $repo->createQueryBuilder('a')
    ->getQuery()
    ->setHint(
        Query::HINT_CUSTOM_OUTPUT_WALKER,
        '\Gedmo\Translatable\Query\TreeWalker\TranslationWalker'
    )
;

$paginator = $this->container->get('knp_paginator');
$pagination = $paginator->paginate($query, $page, $limit, ['distinct' => false]);

Extra check here will solve the problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions