You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 21, 2019. It is now read-only.
I build a class MongoDbFixtureManager extends CDbFixtureManager.
require_once('d:/www/yii-1.1.5.r2654/framework/test/CDbFixtureManager.php');
class MongoDbFixtureManager extends CDbFixtureManager
{
private $_db;
public $connectionID='mongodb';
public function getDbConnection()
{
if($this->_db===null)
{
$this->_db=Yii::app()->getComponent($this->connectionID);
if(!$this->_db instanceof EMongoDB)
throw new CException(Yii::t('yii','CDbTestFixture.connectionID "{id}" is invalid. Please make sure it refers to the ID of a CDbConnection application component.',
array('{id}'=>$this->connectionID)));
}
return $this->_db;
}
}
because mongodb has no schema, this can not work.
This issue was closed.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Everything is ok in using YiiMongoDbSuite, but when use fixture in the test, it show an error:
CDbConnection.connectionString cannot be empty.
The text was updated successfully, but these errors were encountered: