Skip to content

Commit

Permalink
Merge pull request #1104 from Sonny812/doctrine-immutable-date-metadata
Browse files Browse the repository at this point in the history
Add Doctrine 2 immutable datetime types to field mapping.
  • Loading branch information
goetas authored Jul 11, 2019
2 parents 63cfa55 + c22529d commit c0e0607
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Metadata/Driver/AbstractDoctrineTypeDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ abstract class AbstractDoctrineTypeDriver implements DriverInterface
'time' => 'DateTime',
'date' => 'DateTime',

'datetime_immutable' => 'DateTimeImmutable',
'datetimetz_immutable' => 'DateTimeImmutable',
'time_immutable' => 'DateTimeImmutable',
'date_immutable' => 'DateTimeImmutable',

'float' => 'float',
'decimal' => 'float',

Expand Down

0 comments on commit c0e0607

Please sign in to comment.