diff --git a/Events.php b/Events.php index 321a799..b681b56 100644 --- a/Events.php +++ b/Events.php @@ -83,7 +83,7 @@ public static function onIntegrityCheck($event) { $integrityController = $event->sender; $integrityController->showTestHeadline("ReportContent Module (" . ReportContent::find()->count() . " entries)"); - foreach (ReportContent::find()->joinWith('content')->all() as $rc) { + foreach (ReportContent::find()->joinWith('content')->each() as $rc) { if ($rc->content === null) { if ($integrityController->showFix("Deleting report id " . $rc->id . " without existing content!")) { $rc->delete(); diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index a10a704..c67ce0c 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -5,6 +5,7 @@ Changelog ---------------------- - Enh #71: Tests for `next` version - Fix #72: Fix error on open old notification +- Fix #74: Fix memory usage on integrity check 1.0.3 (July 10, 2023) ---------------------