Skip to content

Commit

Permalink
Merge pull request #24 from mpclarkson/master
Browse files Browse the repository at this point in the history
Fixes instantiating entities with constructor args
  • Loading branch information
redox committed Aug 13, 2015
2 parents 430e732 + 2d66623 commit 4a47b8e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Indexer/Indexer.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,8 @@ public function discoverEntity($entity_or_class, EntityManager $em)
if ($reflClass->isAbstract()) {
return false;
}
$entity = new $class();

$entity = $reflClass->newInstanceWithoutConstructor();
}

// check if we already saw this type of entity
Expand Down

0 comments on commit 4a47b8e

Please sign in to comment.