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
Post a Comment