webonaute/doctrine-mysql-extra

Some extra stuff for doctrine with MYSQL Plateform.

1.2.2 2022-05-03 16:28 UTC

This package is auto-updated.

Last update: 2024-10-30 01:42:44 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.