定制 tonis-io/doctrine-orm 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

tonis-io/doctrine-orm

Composer 安装命令:

composer require tonis-io/doctrine-orm

包简介

README 文档

README

Scrutinizer Code Quality Code Coverage Build Status

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

GitHub 信息

  • Stars: 0
  • Watchers: 2
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2015-08-02