oskarstark / doctrine-postgres-milliseconds-platform
A Doctrine DBAL platform for Postgres with millisecond support
2.1.0
2025-01-11 11:41 UTC
Requires
- php: >=7.4
- doctrine/dbal: ^2.0
Requires (Dev)
- ergebnis/composer-normalize: ^2.2
- ergebnis/test-util: ^1.5
- friendsofphp/php-cs-fixer: ^2.19
- phpstan/extension-installer: ^1.0
- phpstan/phpstan: ^0.12.14
- phpstan/phpstan-webmozart-assert: ^0.12.2
- phpunit/phpunit: ^9.0
This package is auto-updated.
Last update: 2025-01-11 11:41:27 UTC
README
Usage
Installation
composer require oskarstark/doctrine-postgres-milliseconds-platform
Setup
# config/packages/doctrine.yaml 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\PostgreSQL\Platform\Doctrine\DBAL\Platforms\PostgreSQLMillisecondsPlatform