Permalink
Browse files

Deprecating DoctrineEntity hydrator

1 parent e5a071e commit 7d8ce6adc9e13edf08fbe3d002f22efbca83e9bc @Ocramius Ocramius committed Jan 13, 2013
Showing with 2 additions and 10 deletions.
  1. +2 −10 src/DoctrineORMModule/Stdlib/Hydrator/DoctrineEntity.php
View
12 src/DoctrineORMModule/Stdlib/Hydrator/DoctrineEntity.php
@@ -29,17 +29,9 @@
* @link http://www.doctrine-project.org/
* @since 0.5.0
* @author Michaël Gallego <mic.gallego@gmail.com>
+ *
+ * @deprecated will be removed in 0.8.0, use DoctrineModule\Stdlib\Hydrator\DoctrineObject instead
*/
class DoctrineEntity extends DoctrineObjectHydrator
{
- /**
- * {@inheritDoc}
- */
- protected function find($target, $identifiers)
- {
- /* @var $entityManager \Doctrine\ORM\EntityManager */
- $entityManager = $this->objectManager;
-
- return $entityManager->getReference($target, $identifiers);
- }
}

0 comments on commit 7d8ce6a

Please sign in to comment.