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(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,

I tried this $c->addSelectColumn(QuestionsPeer::QUESTION);
but that does not work!!!

So any leads anyone?

-- 
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