I have a class that extends Zend_Db_Table_Abstract. Just before calling the
parent::__construct() method, I make a call to
Zend_Server_Reflection::reflectClass(get_class($this)). 

When I do so, I get a fatal error: Fatal error: Call to a member function
isOptional() on a non-object in
/opt/zf/library/Zend/Server/Reflection/Function/Abstract.php on line 348 


It appears that this happens when the function
Zend_Db_Table_Abstract::find() is evaluated by the _reflect() method in the
class above. While looking for a solution I found  Fatal error: Call to a
member function isOptional() on a non-object in
/opt/zf/library/Zend/Server/Reflection/Function/Abstract.php on line 348
this  message on the ZF Issue Tracker, but it doesn't seem to be the exact
same case. Further looking on any forum doesn't give me any helpful results,
too.


FYI: I'm using the ZF 1.0.1 in combination with PHP 5.2.3-1+b1. Below this
the code I think is relevant.




class My_Db_Table extends Zend_Db_Table_Abstract { 
    public function __construct($config = null){
        echo("My_Db_Table::__construct()");

        $refClass = Zend_Server_Reflection::reflectClass(get_class($this));

        if($config == null){
                parent::__construct();
        }else{
                parent::__construct($config);
        }
    }
}


-- 
View this message in context: 
http://www.nabble.com/Zend_Db_Table_Abstract-bug--tf4299861s16154.html#a12238827
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to