Fix error when call non-static funtion 'getInstance' as static on ModelMysql.
This commit is contained in:
parent
a036d0e1be
commit
a2503adba2
@ -160,7 +160,7 @@ class ModelMySQL {
|
||||
* @return ModelMySQL
|
||||
* Retorna un objeto de la clase actual.
|
||||
*/
|
||||
public function getInstance($elem = []) {
|
||||
public static function getInstance($elem = []) {
|
||||
$class = get_called_class();
|
||||
$instace = new $class;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user