View Single Post
  #6 (permalink)  
Old 07-15-2008, 05:58 PM
bennell bennell is offline
Junior Member
 
Join Date: May 2008
Posts: 12
Default

Another way would be to provide an init() method in your custom row class, to populate a member variable after the row is created.
Building on Davidoff's example:
PHP Code:
//custom row class
class UserRow extends Zend_Db_Table_Row_Abstract 
{
    public 
$fullname;

    public function 
init()
    {
        
$this->fullname $this->forename ' ' $this->lastname
    }

Reply With Quote