Browse Source

Fix Warning on 1 element collection

Paolo Libertini 6 years ago
parent
commit
e670acd1aa
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/Mooses/AbstractMongo.php

+ 1 - 1
lib/Mooses/AbstractMongo.php

@@ -137,7 +137,7 @@ class Mooses_AbstractMongo extends Mooses_Mongodb_Mongo_Document {
         }
         }
     }
     }
 
 
-    public function __callStatic($name, $arguments)
+    public static function __callStatic($name, $arguments)
     {
     {
         if(get_called_class() != get_class(self::$_instance)){
         if(get_called_class() != get_class(self::$_instance)){
             $_mongoInformations = $this->_retrieveTableName();
             $_mongoInformations = $this->_retrieveTableName();