dudapiotr / ZfTable

*Not supported*ZfTable 3.1. Awesome ZF2 table / grid (and much much more) generator with huge possibilities of decorating and conditioning. Integrated with DataTables, Doctrine 2, Bootstrap 2.0 and 3.0.
http://dudapiotrek.laohost.net/
MIT License
75 stars 59 forks source link

adding Hint to query #96

Open hattingen opened 7 years ago

hattingen commented 7 years ago

Hi, I am trying to add a hint to the querybuilder to search in translatable fields. So far I have:

        $qb->getQuery()->setHint(
            \Doctrine\ORM\Query::HINT_CUSTOM_OUTPUT_WALKER,
            'Gedmo\\Translatable\\Query\\TreeWalker\\TranslationWalker'
        );

        $table->setAdapter($this->getDbAdapter())
            ->setSource($qb)
            ->setParamAdapter($this->getRequest()->getPost())
        ;

It is ignored.

Where would be the best way to implement this?