1
0
mirror of synced 2024-12-14 15:16:04 +03:00

Merge branch 'config'

This commit is contained in:
Alexander 2012-08-14 22:33:36 +02:00
commit 5c585b4c02

View File

@ -512,6 +512,20 @@ class Configuration extends \Doctrine\DBAL\Configuration
}
}
/**
* Set the custom hydrator modes in one pass.
*
* @param array An array of ($modeName => $hydrator)
*/
public function setCustomHydrationModes($modes)
{
$this->_attributes['customHydrationMods'] = array();
foreach ($modes as $modeName => $hydrator) {
$this->addCustomHydrationMode($modeName, $hydrator);
}
}
/**
* Get the hydrator class for the given hydration mode name.
*