From d2faffe4f022aec438a8e41ef454abb5ad7c8845 Mon Sep 17 00:00:00 2001 From: Sammaye Date: Wed, 29 Jan 2014 08:29:59 +0000 Subject: [PATCH] Cleaned up readme a little --- readme.md | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/readme.md b/readme.md index 363eb8a..60375c8 100755 --- a/readme.md +++ b/readme.md @@ -903,7 +903,7 @@ To setup a versioned document you can simply create a model implementing `versio public static function model($className=__CLASS__){ return parent::model($className); - } + } } The verisoning ability of a document cannot be changed during runtime once it has been set, in other words you cannot do `$doc->removeVersion()` to stop versioning from having @@ -915,17 +915,16 @@ version you have is upto date. ## Database migrations -Even though MongoDB is schemaless, you sometimes may need to modify your records. To do so, you may use the `yiic mongomigrate` command. It works exactly like `yiic migrate`. For detailed usage, please refer to the [yii docs](http://www.yiiframework.com/doc/guide/1.1/en/database.migration). +Even though MongoDB is schemaless, you sometimes may need to modify your records. To do so, you may use the `yiic mongomigrate` command. +It works exactly like `yiic migrate`. For detailed usage, please refer to the [yii docs](http://www.yiiframework.com/doc/guide/1.1/en/database.migration). To enable the command in your application, add a `commandMap` entry in your config file: -
-'commandMap' => array(
-    'migratemongo' => array(
-        'class' => 'application.extensions.MongoYii.util.EMigrateMongoCommand'
+    'commandMap' => array(
+        'migratemongo' => array(
+            'class' => 'application.extensions.MongoYii.util.EMigrateMongoCommand'
+        )
     )
-)
-
## Known Flaws @@ -1080,7 +1079,9 @@ To use it simply place it in your configuration: 'class' => 'EMongoAuthManager', ) -It will work the same way as any other auth manager. You may want to use [Database migrations](#migrations) to keep authorization settings across your application instances up to date. +It will work the same way as any other auth manager. + +**Note:** You may want to use [Database migrations](#migrations) to keep authorization settings across your application instances up to date. ## Upgrade Notes