Skip to content

Commit

Permalink
fixes #165
Browse files Browse the repository at this point in the history
  • Loading branch information
floriansemm committed Jun 20, 2017
1 parent 5abf461 commit 9426bfe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Repository/Repository.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,11 @@ public function __construct(SolrInterface $solr, MetaInformationInterface $metaI
*/
public function find($id)
{
$documentKey = $this->metaInformation->getDocumentName() . '_' . $id;

$query = new FindByIdentifierQuery();
$query->setIndex($this->metaInformation->getIndex());
$query->setDocumentKey($this->metaInformation->getDocumentKey());
$query->setDocumentKey($documentKey);
$query->setEntity($this->metaInformation->getEntity());
$query->setSolr($this->solr);
$query->setHydrationMode($this->hydrationMode);
Expand Down

0 comments on commit 9426bfe

Please sign in to comment.