I was already using this extension for some functions and tried using the text[] type but doctrine thrown this exception when I tried to use it in an entity.
I was able to fix that by extending TextArray and adding this method:
/**
* @return array<string>
*/
public function getMappedDatabaseTypes(AbstractPlatform $platform): array
{
return [self::TYPE_NAME];
}
is there something wrong with my config ? or maybe that’s something caused by the latest version of doctrine ? if not do you think this method should be added to BaseType ?
doctrine/dbal: 2.10.2
doctrine/orm: 2.7.3
doctrine/doctrine-bundle: 2.1.0
symfony: 5.1.*