I'm trying to map a custom type to a string. Here's my entity definition:
/**
* @var string
*
* @ORM\Column(name="type", type="string", columnDefinition="my_type_enum", nullable=false)
*/
But when I try to create migration (migration:diff) this is the output
[Doctrine\DBAL\DBALException]
Unknown database type my_type_enum
requested, Doctrine\DBAL\Platforms\PostgreSQL92Platform
may not suppo
rt it.
Seems I need to map my custom type my_type_enum
to a string using mapping_types
, but where in Zend Expressive? It's seems my configuration is ignored
...
'doctrine' => [
'dbal' => [
'mapping_types' => [
'my_type_enum' => 'string'
]
]
]
...