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-relationship mapping are you having difficulty with? 
An object represents a row  - you won't get partially hydrated objects 
from the ORM layer when doing a select. You could always write raw 
queries and hydrate your own non-ORM objects if you like.



> > > 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 [email protected]
> > To unsubscribe from this group, send email to
> > [email protected]<symfony-users%[email protected]>
> > 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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to