php - Doctrine: add ORM configuration file -


i want add custom hydrator in symfony 2.8 project. official doctrine documentation says add following code orm configuration file.

<?php $em->getconfiguration()->addcustomhydrationmode('customhydrator', 'myproject\hydrators\customhydrator'); 

i have no such file in project yet, should create , how include symfony app?

you should find need in official documentation of symfony.

http://symfony.com/doc/current/reference/configuration/doctrine.html

symfony using yaml or xml configuration files bundles. in case need add hydrators in doctrine.orm.entity_managers.your_em.hydrators.


Comments

Popular posts from this blog

angular - DownloadURL return null in below code -

python 2.7 - Given three nested dictionaries, sort the top two nested dictionaries from a value in the innermost dictionary? -