, (*1)
Providing easy-to-use tools for doctrine., (*2)
Content
This lib provides the following util classes:
- EntityManagerBuilder an entity manager builder providing an easy way to add Doctrine types
to the EntityManager, 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.
- Psr3SqlLogger is a Doctrine logger encapsulating a PSR3 logger., (*3)
Usage example
EntityManagerBuilder, (*4)
$builder = new EntityManagerBuilder($connection, $config);
$builder->addType('customName', CustomType::class, [ [ 'callTypeMethod', []] ]);
$entityManager = $builder->buildEntityManager();
Psr3SqlLogger, (*5)
$logger = new Psr3SqlLogger($psr3Logger, LogLevel::INFO);