Closed revlis7 closed 7 years ago
Parameter $id is not used in find function, and a QueryException will be thrown here.
$id
https://github.com/floriansemm/SolrBundle/blob/master/Repository/Repository.php#L52
public function find($id) { $query = new FindByIdentifierQuery(); $query->setIndex($this->metaInformation->getIndex()); $query->setDocumentKey($this->metaInformation->getDocumentKey()); // maybe use $id instead $query->setEntity($this->metaInformation->getEntity()); $query->setSolr($this->solr); $query->setHydrationMode($this->hydrationMode); $found = $this->solr->query($query); if (count($found) == 0) { return null; } return array_pop($found); }
should be fixed. How does the exception look like?
QueryException is just the same issue. Now it's okay.
Parameter
$id
is not used in find function, and a QueryException will be thrown here.https://github.com/floriansemm/SolrBundle/blob/master/Repository/Repository.php#L52