Skip to content

Commit

Permalink
AbstractDoctrineTypeDriver: Add ascii_string, dateinterval, and json …
Browse files Browse the repository at this point in the history
…to type mapping
  • Loading branch information
Dominic Tubach committed Feb 10, 2021
1 parent 08cf7e3 commit a7c00a5
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 @@ -29,6 +29,7 @@ abstract class AbstractDoctrineTypeDriver implements DriverInterface
*/
protected $fieldMapping = [
'string' => 'string',
'ascii_string' => 'string',
'text' => 'string',
'blob' => 'string',
'guid' => 'string',
Expand All @@ -47,12 +48,15 @@ abstract class AbstractDoctrineTypeDriver implements DriverInterface
'time_immutable' => 'DateTimeImmutable',
'date_immutable' => 'DateTimeImmutable',

'dateinterval' => 'DateInterval',

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

'boolean' => 'boolean',

'array' => 'array',
'json' => 'array',
'json_array' => 'array',
'simple_array' => 'array<string>',
];
Expand Down

0 comments on commit a7c00a5

Please sign in to comment.