Permalink
Browse files

Merge pull request #487 from symbiat/master

Updated docs for Model::$_schema.
  • Loading branch information...
gwoo committed May 25, 2012
2 parents 55fd800 + d6fae12 commit d0a11cba3c605fab595cefd05be3a880d2d2e91b
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 d0a11cb

Please sign in to comment.