webonaute / doctrine-mysql-extra
Some extra stuff for doctrine with MYSQL Plateform.
1.2.2
2022-05-03 16:28 UTC
Requires
- php: >=7.2
- doctrine/doctrine-bundle: ^2.0
Requires (Dev)
- dragonmantank/cron-expression: ^3.3
- phpunit/phpunit: ^9.5
- symfony/browser-kit: ^5.4
- symfony/console: ^5.4
- symfony/monolog-bundle: ^3.0
- symfony/phpunit-bridge: ^5.4
- symfony/profiler-pack: ^1.0
- symfony/twig-bundle: ^5.4
Suggests
- dragonmantank/cron-expression: Require if you use CronExpressionType.
Provides
None
Conflicts
None
Replaces
None
README
About
Some extra stuff for doctrine with MYSQL Plateform.
Release
Installation
This bundle is available via composer, find it on packagist.
Run :
composer require webonaute/doctrine-mysql-extra 1.0
Documentation
Doctrine configuration
doctrine:
dbal:
default_connection: default
connections:
default:
platform_service: 'Webonaute\DoctrineMysqlExtra\Doctrine\DBAL\Platforms\MySql57Platform'
server_version: '5.7'
#platform_service: 'Webonaute\DoctrineMysqlExtra\Doctrine\DBAL\Platforms\MySql80Platform'
#server_version: '80'
types:
numeric: Webonaute\DoctrineMysqlExtra\Doctrine\DBAL\Types\NumericType
cron_expression: Webonaute\DoctrineMysqlExtra\Doctrine\DBAL\Types\CronExpressionType
orm:
entity_managers:
default:
dql:
datetime_functions:
now: Webonaute\DoctrineMysqlExtra\Doctrine\ORM\Query\Now
utc_timestamp: Webonaute\DoctrineMysqlExtra\Doctrine\ORM\Query\UtcTimestamp
For symfony User, please declare the service to use in your services.yml.
services:
Webonaute\DoctrineMysqlExtra\Doctrine\DBAL\Platforms\MySql57Platform: ~
License
See LICENSE.