mkurc1 / doctrine-prefix-bundle
该包已被弃用且不再维护。未建议替代包。
Symfony DoctrinePrefixBundle
1.0.1
2016-11-26 12:04 UTC
Requires
- php: >=5.3.9
- doctrine/orm: ^2.4.8
This package is not auto-updated.
Last update: 2024-06-06 00:13:00 UTC
README
该插件在实体表名前添加前缀。此插件适用于 Symfony 框架。
配置
使用composer安装插件
$ composer require mkurc1/doctrine-prefix-bundle
在内核中启用插件
<?php
// app/AppKernel.php
public function registerBundles()
{
$bundles = array(
// ...
new DoctrinePrefixBundle\DoctrinePrefixBundle(),
// ...
);
}
配置您的应用程序
# app/config/config.yml
doctrine_prefix:
table_prefix: 'your_prefix'
更新您的数据库模式
$ php app/console doctrine:schema:update --force
许可协议
该插件在 MIT 许可协议 下发布。