diff --git a/lib/Cron/Workers/StatsNotifications/Scheduler.php b/lib/Cron/Workers/StatsNotifications/Scheduler.php index ba094f17f4..d140a61ad3 100644 --- a/lib/Cron/Workers/StatsNotifications/Scheduler.php +++ b/lib/Cron/Workers/StatsNotifications/Scheduler.php @@ -67,7 +67,7 @@ class Scheduler { } private function isTaskScheduled($newsletter_id) { - $existing = ScheduledTask::table_alias('tasks') + $existing = ScheduledTask::tableAlias('tasks') ->join(StatsNotification::$_table, 'tasks.id = notification.task_id', 'notification') ->where('tasks.type', Worker::TASK_TYPE) ->where('notification.newsletter_id', $newsletter_id) diff --git a/lib/Models/Model.php b/lib/Models/Model.php index 4de13f7211..f3bfbe5324 100644 --- a/lib/Models/Model.php +++ b/lib/Models/Model.php @@ -62,6 +62,7 @@ if(!defined('ABSPATH')) exit; * @method $this whereIn($column_name, $values) * @method static $this whereIn($column_name, $values) * @method $this whereNotIn($column_name, $values) + * @method static $this whereNotIn($column_name, $values) * @method $this whereNull($column_name) * @method static $this whereNull($column_name) * @method $this whereNotNull($column_name)