From a0b9aedb126d72d4c080c5ba33e8eebe2f9f4d87 Mon Sep 17 00:00:00 2001 From: Paul Klimov Date: Fri, 6 Dec 2013 11:44:41 +0200 Subject: [PATCH] Doc comments at "\yii\mongo\Connection" fixed. --- extensions/mongo/Connection.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/extensions/mongo/Connection.php b/extensions/mongo/Connection.php index 9c861cdf8e..3b9ea9ee41 100644 --- a/extensions/mongo/Connection.php +++ b/extensions/mongo/Connection.php @@ -84,13 +84,15 @@ class Connection extends Component /** * @var array connection options. * for example: + * * ~~~ * [ - * 'persist' => true, // use persistent connection * 'socketTimeoutMS' => 1000, // how long a send or receive on a socket can take before timing out * 'journal' => true // block write operations until the journal be flushed the to disk * ] * ~~~ + * + * @see http://www.php.net/manual/en/mongoclient.construct.php */ public $options = []; /** @@ -111,7 +113,7 @@ class Connection extends Component /** * Returns the Mongo collection with the given name. * @param string|null $name collection name, if null default one will be used. - * @param boolean $refresh whether to reload the table schema even if it is found in the cache. + * @param boolean $refresh whether to reestablish the database connection even if it is found in the cache. * @return Database database instance. */ public function getDatabase($name = null, $refresh = false)