PHPackages                             wemakecustom/doctrine-naming-strategy-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. wemakecustom/doctrine-naming-strategy-bundle

ActiveSymfony-bundle

wemakecustom/doctrine-naming-strategy-bundle
============================================

WeMakeCustom Doctrine Naming Strategy

v1.0(10y ago)327.2k2[1 PRs](https://github.com/wemakecustom/doctrine-naming-strategy-bundle/pulls)MITPHPPHP &gt;=5.3.3

Since Feb 26Pushed 4y ago3 watchersCompare

[ Source](https://github.com/wemakecustom/doctrine-naming-strategy-bundle)[ Packagist](https://packagist.org/packages/wemakecustom/doctrine-naming-strategy-bundle)[ RSS](/packages/wemakecustom-doctrine-naming-strategy-bundle/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

WMC Doctrine Naming Strategy
============================

[](#wmc-doctrine-naming-strategy)

This naming strategy is based on Doctrine's own `UnderscoreNamingStrategy`.

The only difference is that table names are pluralized (`users` and `user_pictures` instead of `user` and `user_picture`). Join key column names are kept in singular form (`user_id`).

**WARNING**: We recommend you use this naming strategy from the very beginning of your project. If you change the naming strategy mid-way, all your tables' name will change and this might create an unpleasant situation.

Installation
------------

[](#installation)

### With Symfony

[](#with-symfony)

The best way to install this extension is through composer:

First, require the bundle:

```
composer require wemakecustom/doctrine-naming-strategy-bundle "^1.0"
```

Second, enable it:

```
