1
0
mirror of synced 2024-12-14 23:26:04 +03:00

Updating documentation for custom hydrators.

This commit is contained in:
Jonathan H. Wage 2010-06-03 14:13:39 -04:00
parent 37124c4e0a
commit 9d2f7f0686

View File

@ -623,7 +623,7 @@ You can easily add your own custom hydration modes by first creating a class whi
Next you just need to add the class to the ORM configuration:
[php]
$em->getConfiguration()->addHydrator('CustomHydrator', 'MyProject\Hydrators\CustomHydrator');
$em->getConfiguration()->addCustomHydrationMode('CustomHydrator', 'MyProject\Hydrators\CustomHydrator');
Now the hydrator is ready to be used in your queries: