Skip to content
This repository has been archived by the owner on May 29, 2024. It is now read-only.

Commit

Permalink
Reflection newInstanceWithoutConstructor changed to newInstance for 5…
Browse files Browse the repository at this point in the history
….3 compat
  • Loading branch information
TomHAnderson committed Jan 14, 2015
1 parent 68e1e63 commit 494a7bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Hydrator/ODM/MongoDB/Strategy/EmbeddedCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ protected function hydrateSingle($targetDocument, $document)
}

$rc = new \ReflectionClass($targetDocument);
$object = $rc->newInstanceWithoutConstructor();
$object = $rc->newInstance();

$hydrator = $this->getDoctrineHydrator($targetDocument);
$hydrator->hydrate($document, $object);
Expand Down
2 changes: 1 addition & 1 deletion src/Hydrator/ODM/MongoDB/Strategy/EmbeddedField.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function hydrate($value)
}

$rc = new \ReflectionClass($targetDocument);
$object = $rc->newInstanceWithoutConstructor();
$object = $rc->newInstance();

$hydrator = $this->getDoctrineHydrator($targetDocument);
$hydrator->hydrate($value, $object);
Expand Down

0 comments on commit 494a7bd

Please sign in to comment.