You should inspect the parent find method to see if it has a 'wrong' docblock. 
This seems to be the cause. If that is the case, can it be fixed? If it can be 
fixed, please let us know.

-Bart

Op 11 feb. 2013, om 12:28 heeft Razorblade <kaiohken1...@hotmail.com> het 
volgende geschreven:

> Hi All, 
> as the title, I get this error when setting a Zend_Db_Table's type class
> with Zend_Rest_Server.
> Tested with ZF 1.12.1
> This is the error:
> 
> 
> object(Zend_Server_Reflection_Exception)#782 (8) {
> ["_previous":"Zend_Exception":private] => NULL
> ["message":protected] => string(224) "Variable number of arguments is not
> supported for services (except optional parameters). Number of function
> arguments in Zend_Db_Table_Abstract::find() must correspond to actual number
> of arguments described in the docblock."
> ["string":"Exception":private] => string(0) ""
> ["code":protected] => int(0)
> ["file":protected] => string(124)
> "path\to\project\vendor\zendframework\zendframework1\library\Zend\Server\Reflection\Function\Abstract.php"
> ["line":protected] => int(350)
> ["trace":"Exception":private] => array(11) {
> [0] => array(6) {
>  ["file"] => string(113)
> "path\to\project\vendor\zendframework\zendframework1\library\Zend\Server\Reflection\Method.php"
>  ["line"] => int(83)
>  ["function"] => string(8) "_reflect"
>  ["class"] => string(40) "Zend_Server_Reflection_Function_Abstract"
>  ["type"] => string(2) "->"
>  ["args"] => array(0) {
>  }
> }
> [1] => array(6) {
>  ["file"] => string(112)
> "path\to\project\vendor\zendframework\zendframework1\library\Zend\Server\Reflection\Class.php"
>  ["line"] => int(90)
>  ["function"] => string(11) "__construct"
>  ["class"] => string(29) "Zend_Server_Reflection_Method"
>  ["type"] => string(2) "->"
>  ["args"] => array(4) {
> 
> [...]
> 
> This is the code to reproduce this error:
> 
>    $this->server = new Zend_Rest_Server();
>    $this->server->setClass("ClassName"); // Class "ClassName" will
> extends Zend_Db_Table
> 
> If "ClassName" have 'find()' method overridden it will work.
> 
> 
> 
> 
> --
> View this message in context: 
> http://zend-framework-community.634137.n4.nabble.com/ZF1-Error-with-Zend-Rest-Server-when-set-a-class-that-extends-Zend-Db-Table-tp4659118.html
> Sent from the Zend Framework mailing list archive at Nabble.com.
> 
> -- 
> List: fw-general@lists.zend.com
> Info: http://framework.zend.com/archives
> Unsubscribe: fw-general-unsubscr...@lists.zend.com
> 
> 


--
List: fw-general@lists.zend.com
Info: http://framework.zend.com/archives
Unsubscribe: fw-general-unsubscr...@lists.zend.com


Reply via email to