1
0
mirror of synced 2024-12-14 23:26:04 +03:00

Merge pull request #28 from brikou/patch-1

fixed setQueryHint > setHint
This commit is contained in:
Guilherme Blanco 2011-05-18 05:47:33 -07:00
commit e665d9f6df

View File

@ -174,8 +174,8 @@ SQL\_NO\_CACHE query hint.
<?php
$dql = "SELECT p, c, a FROM BlogPost p JOIN p.category c JOIN p.author a WHERE ...";
$query = $m->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.