Zend Framework

Documented columns() method missing

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: N/A N/A
  • Resolution: Not an Issue
  • Affects Version/s: 1.5.2
  • Fix Version/s: 1.9.3
  • Component/s: Zend_Db_Select
  • Labels:
    None

Description

The columns method documented here

http://framework.zend.com/manual/en/zend.db.select.html#zend.db.select.building.columns-atomic

Seems to be missing. I implemented it rather crudely with

public function columns($cols,$correlationName) { $this->_tableCols($correlationName, $cols); }

Activity

Hide
Brett Patterson added a comment -

I implemented it in the following way and found the same issue.

$select = $this->db->select()
->from('table_nav')
->columns(array('title', 'target'))
->order(array('order ASC'));
$stmt = $this->db->query($select);
$navItems = $this->db->fetchAll($stmt);

Would have been nice to have this if it's in the documentation. Perhaps it's as easy as putting it in to 1.5.3 One can wish.

Show
Brett Patterson added a comment - I implemented it in the following way and found the same issue. $select = $this->db->select() ->from('table_nav') ->columns(array('title', 'target')) ->order(array('order ASC')); $stmt = $this->db->query($select); $navItems = $this->db->fetchAll($stmt); Would have been nice to have this if it's in the documentation. Perhaps it's as easy as putting it in to 1.5.3 One can wish.
Hide
Ralph Schindler added a comment -
Show
Ralph Schindler added a comment - I seem to be able to see it here: http://framework.zend.com/svn/framework/standard/trunk/library/Zend/Db/Select.php Can i close?
Hide
Matt Lyons added a comment -

Looks good to me.

Show
Matt Lyons added a comment - Looks good to me.

People

Vote (3)
Watch (4)

Dates

  • Created:
    Updated:
    Resolved: