fixed typo error
[activemongo.git] / README
blob41e72d6a58d9e305ba30326db563dd0337b1bbc9
1 Really simple ActiveRecord for MongoDB
2 ----------------------------------------
4 MongoDB is a very powerful database, very performant and amicable. I wrote an article about it,
6 http://www.phpclasses.org/blog/post/118-Developing-scalable-PHP-applications-using-MongoDB.html
8 ActiveMongo, is a simple yet efficient MongoDB abstraction, following the ActiveRecord pattern. Visit http://crodas.org/activemongo.php for further details.
11 Comments, patches, bug reports are welcome to the blog post, my personal e-mail address, crodas@php.net
14 What it does now:
16 - Handle MongoDB connection, conecting once when it is needed
17 - Define a Collection as a class
18 - Abstracts iteration over a dataset
19 - Efficient save() which creates or updates efficiently (using $unset, $set) a record
20 - Provides simple queries interface, but allows to get MongoCollection for complex queries in sub-classes
21 - Delete current object, Drop() table
22 - Support filtering per property
23 - Support for efficient updates on nested documents
24 - Support Hooks:
25     - pre_save($operation, Array &$document): Right before to perform and insert or update
26     - on_save(): When a document is created
27     - on_update(): When a document is updated
28     - on_iterate(): On iteration, when the cursor moves to the next document
29 - Support simple yet useful collection installation, useful to create indexes and shard keys.
31 TODO:
32     - Add efficient support for references to another Record, and an efficient way to load it (with one query if possible)