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 <symb...@gmail.com> wrote:

> 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
> > query to make it work,
>
> Im assuming you're using Propel:
>
> foreach($results as $result) {
>    print $results->getQuestion();
> }
>
>
>
> --
>
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com<symfony-users%2bunsubscr...@googlegroups.com>
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to