datana-gmbh/doctrine-postgres-milliseconds-platform

Generated files

config/packages/datana_doctrine_postgres_milliseconds_platform.yaml

services:
    _defaults:
        autowire: true

    Datana\Doctrine\Postgres\Platform\Doctrine\DBAL\Platforms\PostgreSQLMillisecondsPlatform: null

doctrine:
    dbal:
        # We want to store DateTime objects with milliseconds
        # The solution is built on https://github.com/doctrine/dbal/issues/2873#issuecomment-701052412
        # but instead of using microseconds we use milliseconds
        platform_service: Datana\Doctrine\Postgres\Platform\Doctrine\DBAL\Platforms\PostgreSQLMillisecondsPlatform