Skip to content

Commit

Permalink
Merge pull request #68 from spira/bug/mapping-properties-extension
Browse files Browse the repository at this point in the history
fixes issue where an additional mapping property is causing an undefi…
  • Loading branch information
Jeremy Sik authored Aug 24, 2016
2 parents bbdc09b + d3fdae8 commit 876fa8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Model/Model/IndexedModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public function getIndexDocumentData()
/** @var IndexedModel|IndexedCollection $results */
$results = $this->$nestedModelName()->getResults();

$nestedModelMappingProperties = $this->mappingProperties['_'.$nestedModelName]['properties'];
$nestedModelMappingProperties = $this->getMappingProperties()['_'.$nestedModelName]['properties'];

if (is_null($results)) {
// Move to next relation
Expand Down

0 comments on commit 876fa8a

Please sign in to comment.