View Single Post
  #2 (permalink)  
Old 12-13-2007, 08:41 AM
troxy troxy is offline
Junior Member
 
Join Date: Oct 2007
Posts: 16
Default

$this->view->currentAnimal is a rowset object, because fetchAll() always returns a rowset, even if only one row is found. You can use current() on the rowset to fetch the single row.
Or use fetchRow() on the table instead, because it returns the first row returned by the query.
Reply With Quote