AbstractHydrator
public abstract class AbstractHydrator
www.doctrine-project.org
Field Summary | |
---|---|
protected mixed | @var array The cache used during row-by-row hydration. |
protected mixed | @var EntityManager The EntityManager instance. |
protected mixed | @var array The query hints. |
protected mixed | @var AbstractPlatform The dbms Platform instance |
protected mixed | @var ResultSetMapping The ResultSetMapping. |
protected mixed | @var Statement The statement that provides the data to hydrate. |
protected mixed | @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 | 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. |
protected mixed $_cache = array()
array The cache used during row-by-row hydration.
protected mixed $_em
EntityManager The EntityManager instance.
protected mixed $_hints
array The query hints.
protected mixed $_platform
AbstractPlatform The dbms Platform instance
protected mixed $_rsm
ResultSetMapping The ResultSetMapping.
protected mixed $_stmt
Statement The statement that provides the data to hydrate.
protected mixed $_uow
UnitOfWork The UnitOfWork of the associated EntityManager.
public AbstractHydrator(Doctrine\ORM\EntityManager em)
Initializes a new instance of a class derived from AbstractHydrator.
public mixed hydrateAll(object stmt, object resultSetMapping, mixed hints)
Hydrates all rows returned by the passed statement instance at once.
public mixed hydrateRow()
Hydrates a single row returned by the current statement instance during
row-by-row hydration with iterate()
.
public IterableResult iterate(object stmt, object resultSetMapping, mixed hints)
Initiates a row-by-row hydration.
Base class for all hydrators. A hydrator is a class that provides some form of transformation of an SQL result set into another structure.