Doctrine


Doctrine\ORM\Internal\Hydration\AbstractHydrator
/Doctrine/ORM/Internal/Hydration/AbstractHydrator.php at line 40

Class AbstractHydrator

AbstractHydrator

public abstract class AbstractHydrator

Base class for all hydrators. A hydrator is a class that provides some form of transformation of an SQL result set into another structure.

License:
http://www.opensource.org/licenses/lgpl-license.php LGPL
See Also:
www.doctrine-project.org
Since:
2.0
Version:
$Revision: 3192 $
Author:
Konsta Vesterinen
Roman Borschel

Field Summary
protected mixed

$_cache

@var array The cache used during row-by-row hydration.

protected mixed

$_em

@var EntityManager The EntityManager instance.

protected mixed

$_hints

@var array The query hints.

protected mixed

$_platform

@var AbstractPlatform The dbms Platform instance

protected mixed

$_rsm

@var ResultSetMapping The ResultSetMapping.

protected mixed

$_stmt

@var Statement The statement that provides the data to hydrate.

protected mixed

$_uow

@var UnitOfWork The UnitOfWork of the associated EntityManager.

Constructor Summary

AbstractHydrator(Doctrine\ORM\EntityManager em)

Initializes a new instance of a class derived from AbstractHydrator.

Method Summary
mixed

hydrateAll(object stmt, object resultSetMapping, mixed hints)

Hydrates all rows returned by the passed statement instance at once.

mixed

hydrateRow()

Hydrates a single row returned by the current statement instance during row-by-row hydration with {@link iterate()}.

IterableResult

iterate(object stmt, object resultSetMapping, mixed hints)

Initiates a row-by-row hydration.

Field Detail

/Doctrine/ORM/Internal/Hydration/AbstractHydrator.php at line 55

_cache

protected mixed $_cache = array()

array The cache used during row-by-row hydration.


/Doctrine/ORM/Internal/Hydration/AbstractHydrator.php at line 46

_em

protected mixed $_em

EntityManager The EntityManager instance.


/Doctrine/ORM/Internal/Hydration/AbstractHydrator.php at line 61

_hints

protected mixed $_hints

array The query hints.


/Doctrine/ORM/Internal/Hydration/AbstractHydrator.php at line 49

_platform

protected mixed $_platform

AbstractPlatform The dbms Platform instance


/Doctrine/ORM/Internal/Hydration/AbstractHydrator.php at line 43

_rsm

protected mixed $_rsm

ResultSetMapping The ResultSetMapping.


/Doctrine/ORM/Internal/Hydration/AbstractHydrator.php at line 58

_stmt

protected mixed $_stmt

Statement The statement that provides the data to hydrate.


/Doctrine/ORM/Internal/Hydration/AbstractHydrator.php at line 52

_uow

protected mixed $_uow

UnitOfWork The UnitOfWork of the associated EntityManager.


Constructor Detail

/Doctrine/ORM/Internal/Hydration/AbstractHydrator.php at line 68

AbstractHydrator

public AbstractHydrator(Doctrine\ORM\EntityManager em)

Initializes a new instance of a class derived from AbstractHydrator.

Parameters:
em - The EntityManager to use.

Method Detail

/Doctrine/ORM/Internal/Hydration/AbstractHydrator.php at line 98

hydrateAll

public mixed hydrateAll(object stmt, object resultSetMapping, mixed hints)

Hydrates all rows returned by the passed statement instance at once.


/Doctrine/ORM/Internal/Hydration/AbstractHydrator.php at line 115

hydrateRow

public mixed hydrateRow()

Hydrates a single row returned by the current statement instance during row-by-row hydration with iterate().


/Doctrine/ORM/Internal/Hydration/AbstractHydrator.php at line 82

iterate

public IterableResult iterate(object stmt, object resultSetMapping, mixed hints)

Initiates a row-by-row hydration.


Doctrine