Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add documention for Hydrators and Naming Strategy #70

Open
lyrad opened this issue Jan 5, 2015 · 0 comments
Open

Add documention for Hydrators and Naming Strategy #70

lyrad opened this issue Jan 5, 2015 · 0 comments

Comments

@lyrad
Copy link

lyrad commented Jan 5, 2015

Hi,
I am configuring my own Hydrators and Naming Strategy in Bootstrap.php with :
$namingStrategy = new OAMNamingStrategy();
$em->getConfiguration()->setNamingStrategy($namingStrategy);

$em->getConfiguration()->addCustomHydrationMode('NumHydrator', 'My\Doctrine\Hydrator\NumHydrator');
$em->getConfiguration()->addCustomHydrationMode('ColumnHydrator', 'My\Doctrine\Hydrator\ColumnHydrator');

I wasn't able to find how to do it in application.ini (something like : resource.doctrine.orm.entityManagers.default.naming_strategy = "My\Doctrine\NamingStrategy\OAMNamingStrategy" ??) and google didn't help me.
Does someone know how to do that? Maybe it could be added in the application.ini given, as an exemple...
Thanks!
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant