From f56facdc3f835d300b715b879be78bfa6bdcdb06 Mon Sep 17 00:00:00 2001 From: ikkez Date: Tue, 15 Feb 2022 21:18:04 +0100 Subject: [PATCH] v1.7.4 release --- changelog.txt | 9 ++++++++- lib/db/cortex.php | 6 +++--- readme.md | 7 ++++++- 3 files changed, 17 insertions(+), 5 deletions(-) diff --git a/changelog.txt b/changelog.txt index 47f731e..d83e934 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,5 +1,12 @@ CHANGELOG - Cortex ORM +1.7.4 (15.02.2022) +* fix SQL function usage with multiple parameters, #110 +* php 8.1 fixes + +1.7.3 (15.03.2021) +* fix: getAll property on non-existing fields + 1.7.2 (18.02.2021) * new: orHas feature @@ -186,4 +193,4 @@ CHANGELOG - Cortex ORM * Bug fix: Jig filter bind value 1.0.0 (30.11.2013) -* init commit \ No newline at end of file +* init commit diff --git a/lib/db/cortex.php b/lib/db/cortex.php index 7b45ead..b55b6f7 100644 --- a/lib/db/cortex.php +++ b/lib/db/cortex.php @@ -13,13 +13,13 @@ * | | < | <| -__|-- __| * |__|__|__||__|__|_____|_____| * - * Copyright (c) 2021 by ikkez + * Copyright (c) 2022 by ikkez * Christian Knuth * https://github.com/ikkez/F3-Sugar/ * * @package DB - * @version 1.7.2 - * @date 18.02.2021 + * @version 1.7.4 + * @date 15.02.2022 * @since 24.04.2012 */ diff --git a/readme.md b/readme.md index 46cd27a..3d9c2a3 100644 --- a/readme.md +++ b/readme.md @@ -50,7 +50,8 @@ It's great for fast and easy data abstraction and offers a bunch of useful filte 2. [Options Array](#options) 7. [Advanced Filter Techniques](#advanced-filter-techniques) 1. [has](#has) - 2. [filter](#filter) + 2. [orHas](#orhas) + 3. [filter](#filter) 8. [Insight into aggregation](#insight-into-aggregation) 1. [Counting Relations](#counting-relations) 2. [Virtual Fields](#virtual-fields) @@ -917,6 +918,10 @@ Now you only load the last 3 published news written by me, which were tagged "Re If you like, you can also call them in a fluent style: `$news->has(...)->load(...);`. +### orHas + +Similar to has method, but adds the has condition with an OR operator. + ### filter The filter method is meant for limiting the results of relations. In example: load author x and only his news from 2014.