Comments (1)
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.
from yiimongodbsuite.
Related Issues (20)
- EMongoDocument's EMongoCriteria change when assigning consecutive criteria HOT 1
- Documentation of EMongoCriteria's constructor is wrong
- Fixed $OR operator in EMongoCriteria.php
- Query Bug ? HOT 2
- Issue with beforeDelete event HOT 1
- search method implement of EMongoDocument seems to not work HOT 4
- Embedded doc containing embedded array of docs HOT 2
- Connect to 2 different Mongodb Servers
- No support for distinct query.
- attributeNames at 4.1. Simple Model (Document in collection) HOT 1
- Simple Embeded Document Model HOT 3
- No support for $ positional operator
- Add support for default Mongo operators in EMongoCriteria ('$gt')
- Getting MongoException when calling save method
- findAll seems not work
- types
- The index of a result of findAll() should be the value of an attribute of those AR results
- EMongoDB::getConnection(): The Mongo class is deprecated, please use the MongoClient class HOT 1
- MongoCollection::insert(): The 'safe' option is deprecated, please use 'w' instead HOT 2
- EMongoUniqueValidator and ClassName doesn't work HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yiimongodbsuite.