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
From: boz <bzarzu...@gmail.com>
Date: Wed, 2 Mar 2011 05:39:01 -0800 (PST)
Local: Wed, Mar 2 2011 8:39 am
Subject: Re: Why doesn't Doctrine_Query::fetchOne() automatically include LIMIT 1?
$q = Doctrine_Query::create()
->from('Post','p') ->leftJoin('p.comments') ->where('status = ?', Post::STATUS_NEW) ->limit(1); still works as expected. I think this scenario is not applicable here.
On Mar 2, 8:46 pm, ivarne <iva...@gmail.com> wrote:
> The trouble is if the Entity has a relation with many other entities
> and the query wants to join them inn. > $q = Doctrine_Query::create()
> if LIMIT 1 is added at the end of the query you would only get the
> On Mar 2, 12:42 pm, boz <bzarzu...@gmail.com> wrote:
> > For example:
> > $q = Doctrine_Query::create()
> > // Will actually query the database for everything
> > Shouldn't fetchOne() be smart enough to do that? 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.
| ||||||||||||||