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 -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -