Jackalope\Transport\DoctrineDBAL\Client::ensureNamespacesBackup PHP Method

ensureNamespacesBackup() private method

This method also ensures that namespaces are loaded to begin with.
    private function ensureNamespacesBackup()
    {
        if (!$this->namespaces instanceof \ArrayObject) {
            $this->getNamespacesObject();
        }
        if (!$this->inTransaction) {
            return;
        }
        if (null === $this->originalNamespaces) {
            $this->originalNamespaces = $this->namespaces->getArrayCopy();
        }
    }