diff options
| author | Jan-Hendrik Willms <tleilax+github@gmail.com> | 2023-01-26 14:01:15 +0100 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+github@gmail.com> | 2023-01-26 14:01:30 +0100 |
| commit | eb09fdeba1dd6259fe8a6beab1fe0413b74d8317 (patch) | |
| tree | cbf926ef8e640e640b75cb3fd0344d0387dd8b01 /lib/models/BlubberThread.php | |
| parent | 73c350e21d800fa7bf91e651ffcf851e7312259f (diff) | |
Revert "adjust sorm methods to count/return only distinct values, re #1885"
This reverts commit 73c350e21d800fa7bf91e651ffcf851e7312259f.
Diffstat (limited to 'lib/models/BlubberThread.php')
| -rw-r--r-- | lib/models/BlubberThread.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/models/BlubberThread.php b/lib/models/BlubberThread.php index f266223..d0f2f89 100644 --- a/lib/models/BlubberThread.php +++ b/lib/models/BlubberThread.php @@ -101,11 +101,11 @@ class BlubberThread extends SimpleORMap implements PrivacyObject /** * @return BlubberThread[] */ - public static function findBySQL($condition, $params = []) + public static function findBySQL($sql, $params = []) { - return parent::findAndMapBySQL(function (BlubberThread $thread) { + return parent::findAndMapBySQL(function ($thread) { return self::upgradeThread($thread); - }, $condition, $params); + }, $sql, $params); } /** |
