public function __construct($id = null)
 {
     parent::__construct($id);
     $this->registerCallback('after_store before_delete', function ($notification) {
         $query = "SELECT user_id\n                      FROM personal_notifications_user\n                      WHERE personal_notification_id = :id";
         $statement = DBManager::get()->prepare($query);
         $statement->bindValue(':id', $notification->id);
         $statement->execute();
         $user_ids = $statement->fetchAll(PDO::FETCH_COLUMN);
         foreach ($user_ids as $user_id) {
             PersonalNotifications::expireCache($user_id);
         }
     });
 }