View Single Post
  #4 (permalink)  
Old 03-26-2008, 06:00 AM
michael063 michael063 is offline
Junior Member
 
Join Date: Mar 2008
Posts: 5
Default

Quote:
Originally Posted by emptiness View Post
With oracle ??


i have add :

PHP Code:
class Albums extends Zend_Db_Table_Abstract
{
    protected 
$_name 'SAGA.ALBUM';
    protected 
$_primary 'ID';
    protected 
$_sequence false
    


and not work

With a fetchall is ok!!!!!


thanks
Yes, I'am use Oracle DB.

Why commented this??
PHP Code:
                $this->view->album $album->fetchRow('ID='.$ID); 
In
PHP Code:
($ID 0) {
                
// only render if we have an id and can find the album.
!!!             //$this->view->album = $album->fetchRow('ID='.$ID);
                
$row $album->fetchRow($album->select()->where('ID='.$ID)); 
and do it
PHP Code:
var_dump($del); var_dump($ID); and $var_dump($row); 

Last edited by michael063 : 03-26-2008 at 06:02 AM.
Reply With Quote