public function reverseTransform($path)
    {
        if (!$path) {
            return;
        }

        $document = $this->dm->find(null, $path);

        if (!$document) {
            throw new TransformationFailedException(sprintf('Could not transform path "%s" to document. Path not found.', $path));
        }

        return $document;
    }
public function reverseTransform($path)
    {
        if (!$path) {
            return;
        }

        $document = $this->dm->find(null, $path);

        if (!$document) {
            throw new TransformationFailedException(sprintf('Could not transform path "%s" to document. Path not found.', $path));
        }

        return $document;
    }
public function reverseTransform ( $ path ) { if ( ! $ path ) { return ; } $ document = $ this -> dm -> find ( null , $ path ) ; if ( ! $ document ) { throw new TransformationFailedException ( sprintf ( 'Could not transform path "%s" to document. Path not found.' , $ path ) ) ; } return $ document ; }
Transform a path to its corresponding PHPCR-ODM document.

@param string $path phpcr path

@return object|null returns the document or null if $path is empty
Transform a path to its corresponding PHPCR - ODM document .