Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding Hint to query #96

Open
hattingen opened this issue Feb 3, 2017 · 0 comments
Open

adding Hint to query #96

hattingen opened this issue Feb 3, 2017 · 0 comments

Comments

@hattingen
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant