Doctrine\ORM\Internal\Hydration\SimpleObjectHydrator
Synopsis
class SimpleObjectHydrator
extends AbstractHydrator
{
- // members
- private ClassMetadata $class;
- private array $declaringClasses;
- // Inherited members from AbstractHydrator
- protected ResultSetMapping $_rsm;
- protected EntityManager $_em;
- protected AbstractPlatform $_platform;
- protected UnitOfWork $_uow;
- protected array $_cache;
- protected Statement $_stmt;
- protected array $_hints;
- // methods
- protected void hydrateAllData()
- protected void prepare()
- protected void hydrateRowData()
- protected array hydrateColumnInfo()
- // Inherited methods from AbstractHydrator
- public void __construct()
- public IterableResult iterate()
- public mixed hydrateAll()
- public mixed hydrateRow()
- protected void prepare()
- protected void cleanup()
- protected void hydrateRowData()
- protected abstract void hydrateAllData()
- protected array gatherRowData()
- protected array gatherScalarRowData()
- protected void registerManaged()
- public void onClear()
Hierarchy
Tasks
Line | Task |
---|---|
361+ | The "$id" generation is the same of UnitOfWork#createEntity. Remove this duplication somehow |
Members
private
- $class — Doctrine\ORM\Mapping\ClassMetadata
- $declaringClasses — array
protected
- $_cache — array
- $_em — Doctrine\ORM\EntityManager
- $_hints — array
- $_platform — \Doctrine\DBAL\Platforms\AbstractPlatform
- $_rsm — \Doctrine\ORM\Query\ResultSetMapping
- $_stmt — \Doctrine\DBAL\Driver\Statement
- $_uow — \Doctrine\ORM\UnitOfWork
Methods
protected
- hydrateAllData() — {@inheritdoc}
- hydrateColumnInfo() — Retrieve column information form ResultSetMapping.
- hydrateRowData() — {@inheritdoc}
- prepare() — {@inheritdoc}
Inherited from Doctrine\ORM\Internal\Hydration\AbstractHydrator
protected
- cleanup() — Excutes one-time cleanup tasks at the end of a hydration that was initiated through {@link hydrateAll} or {@link iterate()}.
- gatherRowData() — Processes a row of the result set.
- gatherScalarRowData() — Processes a row of the result set.
- hydrateAllData() — Hydrates all rows from the current statement instance at once.
- hydrateRowData() — Hydrates a single row from the current statement instance.
- prepare() — Excutes one-time preparation tasks, once each time hydration is started through {@link hydrateAll} or {@link iterate()}.
- registerManaged() — Register entity as managed in UnitOfWork.
public
- hydrateAll() — Hydrates all rows returned by the passed statement instance at once.
- hydrateRow() — Hydrates a single row returned by the current statement instance during row-by-row hydration with {@link iterate()}.
- iterate() — Initiates a row-by-row hydration.
- onClear() — When executed in a hydrate() loop we have to clear internal state to decrease memory consumption.