From 1be8bc551118906e62f97c7e8dacb852bc752328 Mon Sep 17 00:00:00 2001 From: Dariusz Date: Mon, 8 Mar 2021 20:55:47 +0100 Subject: [PATCH 1/2] fix --- src/Fufle/ORM/Model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Fufle/ORM/Model.php b/src/Fufle/ORM/Model.php index 1698375..e9692e8 100644 --- a/src/Fufle/ORM/Model.php +++ b/src/Fufle/ORM/Model.php @@ -23,7 +23,7 @@ abstract class Model { } protected static function QueryModel() { - if (self::$query === null && self::class !== static::class) { + if (false && self::$query === null && self::class !== static::class) { self::$query = static::SetQueryModel(); } return self::$query; From e14198e26212194e7c14571ef410ccc0d8e98054 Mon Sep 17 00:00:00 2001 From: Dariusz Date: Mon, 8 Mar 2021 22:26:12 +0100 Subject: [PATCH 2/2] fix --- src/Fufle/ORM/Model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Fufle/ORM/Model.php b/src/Fufle/ORM/Model.php index e9692e8..272edfd 100644 --- a/src/Fufle/ORM/Model.php +++ b/src/Fufle/ORM/Model.php @@ -23,7 +23,7 @@ abstract class Model { } protected static function QueryModel() { - if (false && self::$query === null && self::class !== static::class) { + if (true || (self::$query === null && self::class !== static::class)) { self::$query = static::SetQueryModel(); } return self::$query;