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

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -