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 -

Qt QGraphicsScene is not accessable from QGraphicsView (on Qt 5.6.1) -

Python Tornado package error when running server -