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

getNamespacesObject() protected method

Return the namespaces of the current session as a referenceable ArrayObject.
protected getNamespacesObject ( ) : ArrayObject
return ArrayObject
    protected function getNamespacesObject()
    {
        if (null === $this->namespaces) {
            $query = 'SELECT prefix, uri FROM phpcr_namespaces';
            $result = $this->getConnection()->query($query);
            $namespaces = (array) $result->fetchAll(\PDO::FETCH_KEY_PAIR);
            $namespaces += $this->coreNamespaces;
            $this->setNamespaces($namespaces);
        }
        return $this->namespaces;
    }