tonis-io/doctrine-orm
Composer 安装命令:
composer require tonis-io/doctrine-orm
包简介
README 文档
README
Tonis\DoctrineORM
Tonis\DoctrineORM is a package to configure a simple Doctrine ORM EntityManager.
Composer
composer require tonis-io/doctrine-orm
Usage
$entityManager = Tonis\DoctrineORM\EntityManagerFactory::create($config, $container)
Note: Container is optional and is used to pull the cache from if the cache is present as a string.
Configuration
The create() method accepts an array of of configuration. The following is an example
with default values.
[
'debug' => true,
'cache' => null,
'proxy_dir' => null,
'driver' => [
'type' => self::DRIVER_ANNOTATION,
'simple' => true,
'paths' => [],
],
'connection' => [
'driver' => 'pdo_mysql'
],
];
统计信息
- 总下载量: 101
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2015-08-02