Doctrine\ORM\EntityManager::getHydrator
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.
Signature
public function getHydrator(int
$hydrationMode )
Parameters
$hydrationMode
— int
Returns
- AbstractHydrator