Skip to content

Commit

Permalink
Add Doctrine 2 immutable datetime types to field mapping.
Browse files Browse the repository at this point in the history
  • Loading branch information
sonnymilton committed Jul 3, 2019
1 parent 7f8dc86 commit d8ab1ee
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Metadata/Driver/AbstractDoctrineTypeDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,13 @@ abstract class AbstractDoctrineTypeDriver implements DriverInterface
'bigint' => 'integer',

'datetime' => 'DateTime',
'datetime_immutable' => 'DateTimeImmutable',
'datetimetz' => 'DateTime',
'datetimetz_immutable' => 'DateTimeImmutable',
'time' => 'DateTime',
'time_immutable' => 'DateTimeImmutable',
'date' => 'DateTime',
'date_immutable' => 'DateTimeImmutable',

'float' => 'float',
'decimal' => 'float',
Expand Down

0 comments on commit d8ab1ee

Please sign in to comment.