MongoDB ODM Param Converter service
In order to get the Param Converter annotation to work with the doctrine ODM you must register a service that enables the ODM registry manager.
You just have to register a service like this:
my_bundle.converter.doctrine.mongodb:
class: Sensio\Bundle\FrameworkExtraBundle\Request\ParamConverter\DoctrineParamConverter
arguments: [@doctrine_mongodb]
tags:
- { name: request.param_converter }
Written by Luã de Souza
Related protips
1 Response
What's the best option to get this working together with ORM ? Since this method will override that behavior.
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Php
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#