1
0
mirror of synced 2025-01-17 22:11:41 +03:00
This commit is contained in:
Guilherme Blanco 2013-07-29 10:46:47 -04:00
parent c28b457221
commit 2dd73d4def
3 changed files with 26 additions and 0 deletions

View File

@ -221,6 +221,14 @@ abstract class EntityManagerDecorator extends ObjectManagerDecorator implements
return $this->wrapped->getUnitOfWork();
}
/**
* {@inheritdoc}
*/
public function getHydrator($hydrationMode)
{
return $this->wrapped->getHydrator($hydrationMode);
}
/**
* {@inheritdoc}
*/

View File

@ -827,6 +827,23 @@ use Doctrine\Common\Util\ClassUtils;
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.
*

View File

@ -51,6 +51,7 @@ interface EntityManagerInterface extends ObjectManager
public function getConfiguration();
public function isOpen();
public function getUnitOfWork();
public function getHydrator($hydrationMode);
public function newHydrator($hydrationMode);
public function getProxyFactory();
public function getFilters();