Bill Karwin wrote:
> As of revision 3995, the find() method always returns an object of type 
> Zend_Db_Table_Rowset_Abstract.

What's the easiest recommended way of getting a row by id?
If I'd like to get the row object in a single line of code, could I use 
current() or is there a better way?

$customerTbl = new My_Db_Table_Customer(); // My_Db_Table_Customer extends 
Zend_Db_Table
$row = $customerTbl->find(5)->current();

Thanks,
Philip

Reply via email to