function Connection::serialize

File

core/lib/Drupal/Core/Database/Driver/mysql/Connection.php, line 516

Class

Connection
MySQL implementation of <a href="/api/drupal/core%21lib%21Drupal%21Core%21Database%21Connection.php/class/Connection/8.9.x" title="Base Database API class." class="local">\Drupal\Core\Database\Connection</a>.

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();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.