Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added magic getters within EMongoClient to support

Yii::app()->mongodb->connection type code.
  • Loading branch information...
commit 9042567751f6178dc5d81caa0f5c6b40f5c19678 1 parent ab2a395
@Sammaye authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  EMongoClient.php
3  EMongoClient.php
@@ -82,6 +82,9 @@ class EMongoClient extends CApplicationComponent{
* The default action is to get a collection
function __get($k){
+ $getter='get'.$name;
+ if(method_exists($this,$getter))
+ return $this->$getter();
return $this->selectCollection($k);
Please sign in to comment.
Something went wrong with that request. Please try again.