Beispiel #1
0
 public static function createMongoId()
 {
     try {
         if (!self::$_mongoId) {
             self::$_mongoId = Basemongo::mongoId();
         }
     } catch (Catcher $e) {
         Catcher::fire($e);
     }
     self::$mongoId = self::$_mongoId->{'$id'};
 }