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

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

This commit is contained in:
Awilum
2019-08-30 16:16:20 +03:00
parent 20b538f614
commit a4790f840f

View File

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