From a4790f840f4d0d60432c3ae081d4b1948db74c78 Mon Sep 17 00:00:00 2001 From: Awilum Date: Fri, 30 Aug 2019 16:16:20 +0300 Subject: [PATCH] fix(core): fix or_where expression for Entries fetchAll method #186 --- flextype/core/Entries.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flextype/core/Entries.php b/flextype/core/Entries.php index 67b13826..6b13be96 100755 --- a/flextype/core/Entries.php +++ b/flextype/core/Entries.php @@ -306,7 +306,7 @@ class Entries // Exec: or where if (isset($bind_or_where['or_where']['key']) && isset($bind_or_where['or_where']['expr']) && isset($bind_or_where['or_where']['value'])) { $expr = new Comparison($bind_or_where['or_where']['key'], $bind_or_where['or_where']['expr'], $bind_or_where['or_where']['value']); - $criteria->where($expr); + $criteria->orWhere($expr); } // Exec: order by