From 20b538f6141941078f621d8342bd85eeccd77434 Mon Sep 17 00:00:00 2001 From: Awilum Date: Fri, 30 Aug 2019 16:15:25 +0300 Subject: [PATCH] fix(core): fix and_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 073dbeb5..67b13826 100755 --- a/flextype/core/Entries.php +++ b/flextype/core/Entries.php @@ -300,7 +300,7 @@ class Entries // Exec: and where if (isset($bind_and_where['and_where']['key']) && isset($bind_and_where['and_where']['expr']) && isset($bind_and_where['and_where']['value'])) { $expr = new Comparison($bind_and_where['and_where']['key'], $bind_and_where['and_where']['expr'], $bind_and_where['and_where']['value']); - $criteria->where($expr); + $criteria->andWhere($expr); } // Exec: or where