From d436ea19dfc58a54d69873beb55b2f3006f9c3f1 Mon Sep 17 00:00:00 2001 From: Brikou CARRE Date: Wed, 18 May 2011 02:51:22 -0700 Subject: [PATCH] fixed setQueryHint > setHint --- en/cookbook/dql-custom-walkers.rst | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/en/cookbook/dql-custom-walkers.rst b/en/cookbook/dql-custom-walkers.rst index 19ce8bda6..2887a5d68 100644 --- a/en/cookbook/dql-custom-walkers.rst +++ b/en/cookbook/dql-custom-walkers.rst @@ -174,8 +174,8 @@ SQL\_NO\_CACHE query hint. createQuery($dql); - $query->setQueryHint(Query::HINT_CUSTOM_OUTPUT_WALKER, 'DoctrineExtensions\Query\MysqlWalker'); - $query->setQueryHint("mysqlWalker.sqlNoCache", true); + $query->setHint(Query::HINT_CUSTOM_OUTPUT_WALKER, 'DoctrineExtensions\Query\MysqlWalker'); + $query->setHint("mysqlWalker.sqlNoCache", true); $results = $query->getResult(); Our ``MysqlWalker`` will extend the default ``SqlWalker``. We will @@ -215,4 +215,3 @@ huge benefits with using vendor specific features. This would still allow you write DQL queries instead of NativeQueries to make use of vendor specific features. -