Change record status: 
Project: 
Introduced in branch: 
11.5.x
Introduced in version: 
11.5.0
Description: 

\Drupal\Core\Database\Query\Query::__wakeup() and \Drupal\Core\Database\Query\Query::__sleep() are deprecated in Drupal 11.x and will be removed in Drupal 12.

This means that database queries can no longer be serialized or unserialized.

This brings the Query class into alignment with the rest of the Database API.

Impacts: 
Module developers