1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-23 05:16:03 +02:00

fix(core): fix and_where expression for Entries fetchAll method #186

This commit is contained in:
Awilum
2019-08-30 16:15:25 +03:00
parent 1aef820063
commit 20b538f614

View File

@@ -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