From 6f18d98c8018bc1b5e9dc20617d0bba4054489fd Mon Sep 17 00:00:00 2001 From: Awilum Date: Wed, 9 Oct 2019 14:03:37 +0300 Subject: [PATCH] feat(core): add alternative comparison syntax for Entries API // alternative comparison syntax 'eq' => Comparison::EQ, 'neq' => Comparison::NEQ, 'lt' => Comparison::LT, 'lte' => Comparison::LTE, 'gt' => Comparison::GT, 'gte' => Comparison::GTE --- flextype/core/Entries.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/flextype/core/Entries.php b/flextype/core/Entries.php index f5fd97d4..606fa412 100755 --- a/flextype/core/Entries.php +++ b/flextype/core/Entries.php @@ -61,6 +61,14 @@ class Entries 'member_of' => Comparison::MEMBER_OF, 'start_with' => Comparison::STARTS_WITH, 'ends_with' => Comparison::ENDS_WITH, + + // alternative comparison syntax + 'eq' => Comparison::EQ, + 'neq' => Comparison::NEQ, + 'lt' => Comparison::LT, + 'lte' => Comparison::LTE, + 'gt' => Comparison::GT, + 'gte' => Comparison::GTE ]; /**