remi-san/doctrine-tools
Composer 安装命令:
composer require remi-san/doctrine-tools
包简介
A set of tools for Doctrine
关键字:
README 文档
README
Providing easy-to-use tools for doctrine.
Content
This lib provides the following util classes:
EntityManagerBuilderan entity manager builder providing an easy way to add Doctrine types to theEntityManager, you can also call methods on the type using a callable formatted array. It has been designed to be compatible with Symfony DI config files.Psr3SqlLoggeris a Doctrine logger encapsulating a PSR3 logger.
Usage example
EntityManagerBuilder
$builder = new EntityManagerBuilder($connection, $config); $builder->addType('customName', CustomType::class, [ [ 'callTypeMethod', []] ]); $entityManager = $builder->buildEntityManager();
Psr3SqlLogger
$logger = new Psr3SqlLogger($psr3Logger, LogLevel::INFO);
统计信息
- 总下载量: 3.39k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-03-23