Added count() method
[activemongo.git] / README
blob82c9e4edbf2948ab832d51fccdb3600402123c8a
1 Really simple ActiveRecord for MongoDB
2 ----------------------------------------
4 This class is under development, don't use it yet.
6 What it does now:
8 - Handle MongoDB connection, conecting once when it is needed
9 - Define a Collection as a class
10 - Abstracts iteration over a dataset
11 - Efficient save() which creates or updates efficiently (ussing $set, $pushAll, $pullAll) a record
12 - Provides simple queries interface, but allows to get MongoCollection for complex queries in sub-classes
13 - Delete current object, Drop() table
14 - Support filtering per property
15 - Support Hooks:
16     - pre_save($operation, Array &$document): Right before to perform and insert or update
17     - on_save(): When a document is saved
18     - on_iterate(): On iteration, when the cursor moves to the next document
20 TODO:
21     - Add efficient support for references to another Record, and an efficient way to load it (with one query if possible)
22     - Add Support for efficient updates on nested arrays