Hi there
The 'columns' method has been added to the trunk - you should see this
in the 1.6 stable release.
Kind regards
> Hi,
> There does not seem to be a method columns either in the api or in
> Zend_Db_Select file
> I have tested the function :
> public function columns($cols, $correlationName=null) {
> $this->_tableCols($correlationName, $cols);
> return $this;
> }
> and it works successfully when added to Zend_Db_Select. I do am not
> intimately familiar this this class, this function should provide
> you with
> the basic functionality you are looking for however.
>
> Thanks!
>
> Benjamin.Gonzales wrote:
>>
>> I was trying the method columns, but I get error,
>>
>> $select = $db->select()
>> ->from(array('t1' => 'employee'), 'employee_id')
>> ->columns('name');
>>
>> I am doing wrong?
>>
> --
> View this message in context:
http://www.nabble.com/%22Adding-columns-to-an-existing-FROM%22-Fatal-error%21-tp17994451p17995443.html> Sent from the Zend DB mailing list archive at Nabble.com.
--
Simon Mundy | Director | PEPTOLAB
""" " "" """""" "" "" """"""" " "" """"" " """"" " """""" "" "
202/258 Flinders Lane | Melbourne | Victoria | Australia | 3000
Voice +61 (0) 3 9654 4324 | Mobile 0438 046 061 | Fax +61 (0) 3 9654
4124
http://www.peptolab.com