HI,
$c->add(QuestionsPeer::USERNAME,'ali'.'%',Criteria::LIKE);
add this line i hope it will execute right record which u requrie
Date: Fri, 28 May 2010 21:42:22 -0700
Subject: [symfony-users] symfony criteri
From: kaliapari...@gmail.com
To: symfony-users@googlegrou
:03 -0400
> From: symb...@gmail.com
> To: symfony-users@googlegroups.com
> Subject: Re: [symfony-users] symfony criteri
>
> On Fri, 28 May 2010, Parijat Kalia wrote:
>
> > $c= new Criteria()
> > $c->add(QuestionsPeer::USERNAME,'ali');
> > $results
On Sat, 29 May 2010, Parijat Kalia wrote:
> Dude..that is obvious way to do it...but still $results has all the data in
> it, most of which happens to be unnneeded data...I was asking for a way to
> filter that out and retrieve only the question part...thanks though!
Which part of object-relation
Dude..that is obvious way to do it...but still $results has all the data in
it, most of which happens to be unnneeded data...I was asking for a way to
filter that out and retrieve only the question part...thanks though!
On Sat, May 29, 2010 at 5:40 AM, Eno wrote:
> On Fri, 28 May 2010, Parijat Ka
On Fri, 28 May 2010, Parijat Kalia wrote:
> $c= new Criteria()
> $c->add(QuestionsPeer::USERNAME,'ali');
> $results = QuestionsPeer::doSelect($c);
>
> Now $results contains all the data of the questions table, where I am
> looking only for the question column, what do I need to add to the above
>
Howdy !!!
I am building queries...the query I am trying to do is
SELECT question FROM questions where username like 'ali'
now the result of this is clearly all the data in the question column of my
questions table, right?
so to translate this into symfony, I do this
$c= new Criteria()
$c->add(Q