Skip to content

Commit

Permalink
Merge pull request #255 from aemaething/master
Browse files Browse the repository at this point in the history
Added handling of PHPCR documents on method 'getIdentifier()'.
  • Loading branch information
mikeSimonson committed May 3, 2017
2 parents 1b6c7dd + cc6789f commit ba467d9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/Doctrine/Common/DataFixtures/ReferenceRepository.php
Expand Up @@ -87,6 +87,11 @@ protected function getIdentifier($reference, $uow)
return $uow->getEntityIdentifier($reference);
}

// PHPCR ODM UnitOfWork
if ($this->manager instanceof PhpcrDocumentManager) {
return $uow->getDocumentId($reference);
}

// ODM UnitOfWork
return $uow->getDocumentIdentifier($reference);
}
Expand Down

0 comments on commit ba467d9

Please sign in to comment.