PHP Class Doctrine\ODM\MongoDB\Hydrator

Since: 1.0
Author: Jonathan H. Wage ([email protected])
Mostra file Open project: pmjones/php-framework-benchmarks Class Usage Examples

Public Methods

Method Description
__construct ( DocumentManager $dm, Doctrine\Common\EventManager $evm, string $cmd ) Create a new Hydrator instance
hydrate ( object $document, array &$data ) : array Hydrate array of MongoDB document data into the given document object.

Method Details

__construct() public method

Create a new Hydrator instance
public __construct ( DocumentManager $dm, Doctrine\Common\EventManager $evm, string $cmd )
$dm DocumentManager
$evm Doctrine\Common\EventManager
$cmd string

hydrate() public method

Hydrate array of MongoDB document data into the given document object.
public hydrate ( object $document, array &$data ) : array
$document object The document object to hydrate the data into.
$data array The array of document data.
return array $values The array of hydrated values.