Permalink
Browse files

Added list showing mapping of $_schema types to MongoDb types.

  • Loading branch information...
1 parent 55fd800 commit d6fae1258ea45c939ec8fe17f93e3bff529cc5e9 Ajai Khattri committed May 25, 2012
Showing with 14 additions and 1 deletion.
  1. +14 −1 data/Model.php
View
@@ -244,6 +244,19 @@ class Model extends \lithium\core\StaticObject {
* a collection, along with a `'data'` key, which contains the schema for that collection, in
* the format specified above.
*
+ * When defining `'$_schema'` where the data source is MongoDB, the types map to database types as follows:
+ *
+ * {{{
+ * id => MongoId
+ * date => MongoDate
+ * regex => MongoRegex
+ * integer => integer
+ * float => float
+ * boolean => boolean
+ * code => MongoCode
+ * binary => MongoBinData
+ * }}}
+ *
* @see lithium\data\source\MongoDb::$_schema
* @var array
*/
@@ -1131,4 +1144,4 @@ protected static function &_connection() {
}
}
-?>
+?>

0 comments on commit d6fae12

Please sign in to comment.