Google Groups Home
Help | Sign in
Message from discussion Bug?
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Alex  
View profile
 More options 14 May, 19:10
From: Alex <outroa...@gmail.com>
Date: Wed, 14 May 2008 15:10:42 -0300
Local: Wed 14 May 2008 19:10
Subject: Bug?

 $query = Doctrine_Query::create()->from('CommentItem
c')->leftJoin('c.sfGuardUser u')->leftJoin('c.VoteComment vc with vc.user_id
= '.$this->getUser()->getId());
    }

    $treeObject = $commentTable->getTree();
    $treeObject->setBaseQuery($query);

    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
c__level, c.root_id AS c__root_id FROM comments c LEFT JOIN sf_guard_user s
ON c.user_id = s.id LEFT JOIN votes v ON c.id = v.comment_id WHERE (v.type =
2 OR v.type IS NULL)"

Doctrine seems to be discarding my last leftJoin's with condition. Is this a
bug or am I doing something wrong?
--

- Alex


    Reply to author    Forward  
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.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google