ODM doesn't work

now, phalcon2.0 is install successful...but, Another problem has appeared, is about Mongo ODM , it doesn't work..., throw exception :

Fatal error: Uncaught exception 'BadMethodCallException' with message 'Wrong number of parameters' in /var/www/html/iot/apps/app/controllers/UserController.php:21 Stack trace: #0 [internal function]: Phalcon\Events\Manager->fire('collectionManag...') #1 [internal function]: Phalcon\Mvc\Collection\Manager->initialize(Object(Faeva\Common\Models\App)) #2 /var/www/html/iot/apps/app/controllers/UserController.php(21): Phalcon\Mvc\Collection->__construct() #3 [internal function]: Faeva\App\Controllers\UserController->createAppAction() #4 [internal function]: Phalcon\Dispatcher->dispatch() #5 /var/www/html/iot/public/index.php(66): Phalcon\Mvc\Application->handle() #6 {main} thrown in /var/www/html/iot/apps/app/controllers/UserController.php on line 21

the following is my source code : $app = new App(); $app->name = 'anxing-feihua'; $app->desc = 'anxing'; $app->save(); print_r($app); echo 'ok';

please help me to solve...thanks



803

what is code of App() model ?