Try something like this:
$c = new Criteria();
$c->clearSelectColumns();
$c->addSelectColumn(SomePeer::SOME_COLUMN);
$rs = MyModelPeer::doSelectRS($c);
while ($rs->next())
{
echo $rs->get(0); // value of SOME_COLUMN
}
On Tue, Mar 24, 2009 at 11:51 PM, kusum <[email protected]> wrote:
>
> Hi,
> I want to select data from a table list.I want to select all rows
> and only one column from this table using symfony api method.How we
> can select only one column.
>
>
> Thanks,
> Kusum
> >
>
--
Blue Horn Ltd - System Development
http://bluehorn.co.nz
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---