webonaute/doctrine-mysql-extra

Some extra stuff for doctrine with MYSQL Plateform.

1.1.1 2020-01-20 17:39 UTC

This package is auto-updated.

Last update: 2020-01-20 17:40:13 UTC


README

Latest Stable Version Total Downloads Latest Unstable Version License

About

Some extra stuff for doctrine with MYSQL Plateform.

Release

  • Use version 1.x for Doctrine 1.8+. build status

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.