Esempio n. 1
0
 public function __construct(array $query, array $fields, Connection $conn, Collection $zcol, MongoCollection $col, $mapper)
 {
     $this->conn = $conn;
     $this->col = $col;
     $this->zcol = $zcol;
     $this->mapper = $mapper;
     parent::__construct($conn->getConnection(), (string) $col, $query, $fields);
 }
Esempio n. 2
0
 public function __construct(MongoClient $mongo, $dbName, $directory)
 {
     $config = new Configuration();
     $config->addModelPath($directory);
     if (!ini_get('production')) {
         $config->development();
     }
     parent::__construct($config, $mongo, $dbName);
 }