mirror of
https://github.com/symfony/recipes-contrib.git
synced 2026-03-24 00:32:17 +01:00
Add datana-gmbh/doctrine-datetime-milliseconds-type. (#1395)
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
services:
|
||||
_defaults:
|
||||
autowire: true
|
||||
|
||||
Datana\Doctrine\Type\Doctrine\DBAL\Types\Type\DateTimeMillisecondsType: null
|
||||
|
||||
doctrine:
|
||||
dbal:
|
||||
types:
|
||||
# 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
|
||||
datetime: Datana\Doctrine\Type\Doctrine\DBAL\Types\Type\DateTimeMillisecondsType
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user