Implementing a Doctrine2 naming strategy in Symfony2
Create a naming strategy as per the Doctrine2 documentation:
http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/namingstrategy.html
Register that class as a service, and reference it in your config.yml as so:
orm:
default_entity_manager: em1
entity_managers:
em1:
mappings:
YamlBundle: ~
naming_strategy: my_bundle.naming_strategy.default
Written by Dom Udall
Related protips
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#