Creating an instance of the class Drupal\Core\Database\Query\Condition with the new keyword is deprecated

Created on 28 March 2023, almost 2 years ago

Problem/Motivation

Per Creating an instance of the class Drupal\Core\Database\Query\Condition with the new keyword is deprecated and an API addition with the method Drupal\Core\Database\Query\Query::getConnection() Primary tabs View(active tab) Edit , creating an instance of the Condition class with new is deprecated.

This is used once in paragraphs_post_update_rebuild_parent_fields() .

Steps to reproduce

Proposed resolution

Replace

$or_group = new Condition('OR');

with

$or_group = $database->condition('OR');

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Needs review

Version

1.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024