Download the PHP package brunohulk/yii2-mongodb-doctrine without Composer
On this page you can find all versions of the php package brunohulk/yii2-mongodb-doctrine. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download brunohulk/yii2-mongodb-doctrine
More information about brunohulk/yii2-mongodb-doctrine
Files in brunohulk/yii2-mongodb-doctrine
Package yii2-mongodb-doctrine
Short Description Doctrine MongoDB ODM extension for Yii2
License MIT
Informations about the package yii2-mongodb-doctrine
Yii2 extension for using MongoDB and Doctrine
About
This component was created with the purpose of allowing us to use all benefits of the Doctrine in Yii2 using the MongoDB ODM version. There are others solutions which use MongoDB and the active record pattern from Yii, but the vast Doctrine documentation and its better way to deal with embedded documents made its case.
Installation
Require the library with Composer:
Then, to activate the component, you have to add the follow entry inside the web.php file replacing the default database params by your customise data:
Usage
To start using the Document manager all you have to do is call the method below in any place you desire, like a controller:
For the last step, is necessary to create a documents
folder within the common
directory in your Yii project, all the
documents mapped must be there, the following example is related to previous doc block.
Special thanks for David Rocha
All versions of yii2-mongodb-doctrine with dependencies
yiisoft/yii2 Version ^2.0
alcaeus/mongo-php-adapter Version ^1.0
doctrine/orm Version *
doctrine/mongodb-odm Version *