0
PhalconPHP 응용 프로그램 용 MongoDB 컬렉션을 설정하려고합니다.컬렉션을 모델로 사용할 수 없습니다 PhalconPHP
mongo 및 collectionManager를 설정했습니다. 예상 객체 구현 Phalcon \ MVC \ ModelInterface, MyApp를 입력의 \ 모델의 개체 \ 사용자 :
$di->set('collectionManager', function(){
return new Phalcon\Mvc\Collection\Manager();
}, true);
//MongoDB Database
$di->set('mongo', function() {
$mongo = new MongoClient("localhost:27017");
return $mongo->selectDb("test");
}, true);
은 내가이 오류
예기치 않은 값 유형을 가지고 다음 모델
class User extends \Phalcon\Mvc\Collection { .... }
이 주어진
이제이 질문을 삭제할 수 있습니다. – cvsguimaraes