Warning: This code is a prototype, incubation stage. Use it at your own risk!
- Clone into your /administrator/components and name it com_mongo.
- Edit /administrator/components/com_mongo/databases/adapters/document.php, in the _initialize(), enter your MongoDB credentials.
- In your model, extend ComMongoModelDocument.
- It is recommended that you don't use this as a separate library because the tables/rowsets/rows will not fall back here. Just use it within your component, and rename the classes with
ComComponent
...
That's it you're ready to go MongoDB!
- There is still no validation and filtering. Everything you put in the Row object, will be saved in your collection!
- Only basic CRUD and querying is supported for now.