public function getIdentifierValues($document)
    {
        $class = $this->getMetadata(ClassUtils::getClass($document));
        $path = $class->reflFields[$class->identifier]->getValue($document);

        return [$path];
    }
public function getIdentifierValues($document)
    {
        $class = $this->getMetadata(ClassUtils::getClass($document));
        $path = $class->reflFields[$class->identifier]->getValue($document);

        return [$path];
    }
public function getIdentifierValues ( $ document ) { $ class = $ this -> getMetadata ( ClassUtils :: getClass ( $ document ) ) ; $ path = $ class -> reflFields [ $ class -> identifier ] -> getValue ( $ document ) ; return [ $ path ] ; }
Transforms the document into the PHPCR path.

Note: This is returning an array because Doctrine ORM for example can
have multiple identifiers, e.g. if the primary key is composed of
several columns. We only ever have one, but return that wrapped into an
array to adhere to the interface.

{@inheritdoc}
Transforms the document into the PHPCR path .