Пример #1
0
 function __construct($name)
 {
     parent::__construct($name);
     $name = strtolower($name);
     $this->collection = MongoClient::getInstance()->getCollection($name);
     $this->defineDocument();
 }