class Doctrine_Hydrator (View source)

Its purpose is to populate object graphs.

Properties

static protected $_totalHydrationTime
protected $_hydrators
protected $_rootAlias
protected $_hydrationMode
protected $_queryComponents

Methods

__construct()

No description

setHydrationMode(mixed $hydrationMode)

Set the hydration mode

mixed
getHydrationMode()

Get the hydration mode

setQueryComponents(array $queryComponents)

Set the array of query components

array
getQueryComponents()

Get the array of query components

string
getHydratorDriverClassName(string $mode = null)

Get the name of the driver class for the passed hydration mode

object
getHydratorDriver(string $mode, array $tableAliases)

Get an instance of the hydration driver for the passed hydration mode

mixed
hydrateResultSet(object $stmt, array $tableAliases)

Hydrate the query statement in to its final data structure by one of the hydration drivers.

Details

__construct()

setHydrationMode(mixed $hydrationMode)

Set the hydration mode

Parameters

mixed $hydrationMode One of the Doctrine_Core::HYDRATE_* constants or a string representing the name of the hydration mode or or an instance of the hydration class

mixed getHydrationMode()

Get the hydration mode

Return Value

mixed $hydrationMode One of the Doctrine_Core::HYDRATE_* constants

setQueryComponents(array $queryComponents)

Set the array of query components

Parameters

array $queryComponents

array getQueryComponents()

Get the array of query components

Return Value

array $queryComponents

string getHydratorDriverClassName(string $mode = null)

Get the name of the driver class for the passed hydration mode

Parameters

string $mode

Return Value

string $className

object getHydratorDriver(string $mode, array $tableAliases)

Get an instance of the hydration driver for the passed hydration mode

Parameters

string $mode
array $tableAliases

Return Value

object Doctrine_Hydrator_Abstract

mixed hydrateResultSet(object $stmt, array $tableAliases)

Hydrate the query statement in to its final data structure by one of the hydration drivers.

Parameters

object $stmt
array $tableAliases

Return Value

mixed $result