chellem/doctine-prefixr-bundle

此包已被 废弃 并不再维护。未建议替代包。

Symfony DoctrinePrefixrBundle

安装: 280

依赖者: 0

建议者: 0

安全: 0

星标: 0

关注者: 3

分支: 2

类型:symfony-bundle

v1.0 2015-08-12 11:39 UTC

This package is auto-updated.

Last update: 2024-06-19 02:23:24 UTC


README

DoctrinePrefixrBundle

Build Status Scrutinizer Code Quality SensioLabsInsight

这是什么?

此扩展包为从Bundle中找到的实体添加 "前缀"。

例如,AcmeDemo中的实体可以有前缀acme_demo,而AcmeLogin可能具有acme_login。

安装

使用 Composer

{
    "require": {
        "chellem/doctine-prefixr-bundle": "dev-master"
    }
}

配置

注册扩展包

<?php
// app/AppKernel.php
public function registerBundles()
{
    $bundles = array(
        // ...
        new DoctrinePrefixr\Bundle\DoctrinePrefixrBundle\DoctrinePrefixrBundle(),
    );
    // ...
}

在您的config.yml中进行配置

# app/config/config.yml
doctrine_prefixr:
    prefixes:
        # no need to add 'Bundle' to the Bundle name
        AcmeDemo: acme_demo
        AcmeLogin: acme_login
        MyCustom: my_custom