I had a project that was running in 1.3.4, but since my upgrade yesterday to 2.0 all queries that need the complex resultset throw the following error:
0 Wrong number of parameters
TRACE
0 [internal function]: Phalcon\Mvc\Model\Resultset\Complex->__construct(NULL, Object(Communicator\Model\ComPara), Object(Phalcon\Db\Result\Pdo), NULL, false)
1 [internal function]: Phalcon\Mvc\Model\Query->_executeSelect(Array, Array, NULL)
2 [internal function]: Phalcon\Mvc\Model\Query->execute(Array, NULL)
3 /www/app/myModule/src/MyModule/Controller/FrontendController.php(99): Phalcon\Mvc\Model::find(Array)
4 [internal function]: MyModule\Controller\FrontendController->showAction()
5 [internal function]: Phalcon\Dispatcher->dispatch()
6 /www/public/index.php(103): Phalcon\Mvc\Application->handle()
7 {main}
Now, If I look at the IDE stub file for Phalcon\Mvc\Model\Resultset\Complex I see that the construct needs only 3 parameters, yet, according to the trace, 5 parameters are passed to the construct.
I'd really appreciate some help here because I'm seriously stuck. What am I not seeing?