You are here

public function Connection::serialize in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Database/Driver/mysql/Connection.php \Drupal\Core\Database\Driver\mysql\Connection::serialize()

File

core/lib/Drupal/Core/Database/Driver/mysql/Connection.php, line 183
Contains \Drupal\Core\Database\Driver\mysql\Connection.

Class

Connection
MySQL implementation of \Drupal\Core\Database\Connection.

Namespace

Drupal\Core\Database\Driver\mysql

Code

public function serialize() {

  // Cleanup the connection, much like __destruct() does it as well.
  if ($this->needsCleanup) {
    $this
      ->nextIdDelete();
  }
  $this->needsCleanup = FALSE;
  return parent::serialize();
}