示例#1
0
 /**
  * Begin a fluent query against a database collection.
  *
  * @param string $collection
  * @return \Jenssegers\Mongodb\QueryBuilder 
  * @static 
  */
 public static function collection($collection)
 {
     return \Jenssegers\Mongodb\Connection::collection($collection);
 }
 /**
  * Get the collection.
  *
  * @return QueryBuilder
  */
 protected function getCacheCollection()
 {
     return $this->connection->collection($this->collection_name);
 }