chellem / doctine-prefixr-bundle
此包已被 废弃 并不再维护。未建议替代包。
Symfony DoctrinePrefixrBundle
v1.0
2015-08-12 11:39 UTC
Requires
- php: >=5.3.2
- doctrine/doctrine-bundle: ~1.2
- doctrine/orm: ~2.2,>=2.2.3
- symfony/framework-bundle: ~2.2
This package is auto-updated.
Last update: 2024-06-19 02:23:24 UTC
README
DoctrinePrefixrBundle
这是什么?
此扩展包为从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