From: Alex <outroa...@gmail.com>
Date: Wed, 14 May 2008 15:24:11 -0300
Local: Wed 14 May 2008 19:24
Subject: Re: [doctrine-user] Re: Bug?
One more question. When must ->select() be added to a Doctrine_Query object? Couldn't find anything about it in the manual. Thanks for your help Jon! - alex On Wed, May 14, 2008 at 3:18 PM, Jonathan Wage <jonw...@gmail.com> wrote: -- > It is good practice. You should always use them so that all values are > prepared. In this case it doesn't matter as much since the value isn't > necessarily user input. > - Jon > On Wed, May 14, 2008 at 1:15 PM, Alex <outroa...@gmail.com> wrote: >> Bingo! That worked. All DQL commands must be uppercased? What's the >> On Wed, May 14, 2008 at 3:13 PM, Jonathan Wage <jonw...@gmail.com> wrote: >>> Try capitalized WITH? Also I would use tokens in your query. ? instead of >>> - Jon >>> On Wed, May 14, 2008 at 1:10 PM, Alex <outroa...@gmail.com> wrote: >>>> $query = Doctrine_Query::create()->from('CommentItem >>>> $treeObject = $commentTable->getTree(); >>>> echo $treeObject->getBaseQuery()->getSqlQuery(); >>>> Output is >>>> "SELECT c.id AS c__id, c.lft AS c__lft, c.rgt AS c__rgt, c.level AS >>>> Doctrine seems to be discarding my last leftJoin's with condition. Is >>>> - Alex >>> -- >> -- >> - Alex > -- - Alex You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||