I have an account model like so:

<?php

class Account extends Zend_Db_Table_Abstract
{
        protected $_name = 'account';

        public function __construct()
        {
                $this->_acc = $this->getCurrentAccount();
                return parent::__construct();
        }

        public function getCurrentAccount()
        {
                $auth = Zend_Auth::getInstance();
                $data = $auth->getIdentity();   
                return $this->find($data['id'])->current();
        }
. . . more
}

and a create account model which extends the account model:

class Account_Create extends Account
{
        public function __construct()
        {
                return parent::__construct();
        }
. . . more
}

I get the following error message:
Fatal error:  Call to a member function describeTable() on a non-object in
/Applications/MAMP/Library/Zend/Db/Table/Abstract.php on line 814

I know for a fact that this error is caused by the __construct method, if I
remove the line '$this->_acc = $this->getCurrentAccount();' the error goes
away. Am I doing anything wrong here? Thanks so much!

        
-- 
View this message in context: 
http://n4.nabble.com/Odd-Zend-Db-Table-Abstract-error-is-it-me-or-a-bug-tp1837130p1837130.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to