推进getConnectionManager引发异常

时间:2019-02-06 08:41:31

标签: php propel2

打电话时

Propel\Runtime\Propel::getConnectionManger('default')

Propel将引发以下异常:

Fatal error: Uncaught Error: Call to a member function getConnectionManager() on null in C:\xampp\htdocs\classmate-api\vendor\propel\propel\src\Propel\Runtime\Propel.php on line 177

Error: Call to a member function getConnectionManager() on null in C:\xampp\htdocs\classmate-api\vendor\propel\propel\src\Propel\Runtime\Propel.php on line 177

Call Stack:
    0.0070     410488   1. {main}() C:\xampp\htdocs\classmate-api\public\index.php:0
    0.0520     803136   2. AnotherPHP::run() C:\xampp\htdocs\classmate-api\public\index.php:14
    2.0390    1009424   3. Propel\Runtime\Propel::getConnectionManager(???) C:\xampp\htdocs\classmate-api\Framework\AnotherPHP.php:46

我当前正在使用Propel版本~2.0@dev

0 个答案:

没有答案