indigophp/fuelphp-doctrine
Composer 安装命令:
composer require indigophp/fuelphp-doctrine
包简介
FuelPHP Doctrine 2 integration
关键字:
README 文档
README
This package is a wrapper around doctrine/doctrine2 package.
Install
Via Composer
$ composer require indigophp/fuelphp-doctrine
Usage
Simply install this package to be able to use Doctrine inside FuelPHP.
Configuration
To make it work, you need the following doctrine configuration.
'dbal' => 'default', 'proxy_dir' => '/tmp', 'proxy_namespace' => 'PrOxYnAmEsPaCe', 'auto_generate_proxy_classes' => true, 'mappings' => array( 'mapping' => array( 'type' => 'xml', 'dir' => '/mypath', 'prefix' => 'MyPrefix', ), ), 'cache_driver' => 'array',
You can also use the Setup class to auto configure the Configuration object.
'dbal' => 'default', 'auto_config' => true, 'dev_mode' => \Fuel::$env === \Fuel::DEVELOPMENT, 'proxy_dir' => '/tmp', 'cache_driver' => 'array',
Multiple managers
By default you have one manager (default). If you would like use multiple managers, you have to add a key managers to your doctrine config, and set your configurations there. You can also set global configurations in the config root. Make sure to set auto_mapping to false.
'auto_mapping' => false, 'dbal' => 'default', 'managers' => array( 'default' => array(), 'aditional' => array() ),
Note: This package uses indigophp/fuelphp-dbal for connections. Check the package documentation.
Contributing
Please see CONTRIBUTING for details.
Credits
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 10
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-11-01