Skip to content

Commit

Permalink
Kept BC.
Browse files Browse the repository at this point in the history
  • Loading branch information
Guilherme Blanco authored and beberlei committed Aug 10, 2013
1 parent 453a566 commit efe4208
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/Doctrine/ORM/Decorator/EntityManagerDecorator.php
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,14 @@ public function getUnitOfWork()
return $this->wrapped->getUnitOfWork();
}

/**
* {@inheritdoc}
*/
public function getHydrator($hydrationMode)
{
return $this->wrapped->getHydrator($hydrationMode);
}

/**
* {@inheritdoc}
*/
Expand Down
17 changes: 17 additions & 0 deletions lib/Doctrine/ORM/EntityManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -827,6 +827,23 @@ public function getUnitOfWork()
return $this->unitOfWork;
}

/**
* Gets a hydrator for the given hydration mode.
*
* This method caches the hydrator instances which is used for all queries that don't
* selectively iterate over the result.
*
* @deprecated
*
* @param int $hydrationMode
*
* @return \Doctrine\ORM\Internal\Hydration\AbstractHydrator
*/
public function getHydrator($hydrationMode)
{
return $this->newHydrator($hydrationMode);
}

/**
* Create a new instance for the given hydration mode.
*
Expand Down
1 change: 1 addition & 0 deletions lib/Doctrine/ORM/EntityManagerInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ public function getEventManager();
public function getConfiguration();
public function isOpen();
public function getUnitOfWork();
public function getHydrator($hydrationMode);
public function newHydrator($hydrationMode);
public function getProxyFactory();
public function getFilters();
Expand Down

0 comments on commit efe4208

Please sign in to comment.