DBAL/Types/AbstractEnumType.php
public function getMappedDatabaseTypes(AbstractPlatform $platform): array
    {
        if ($platform instanceof MySqlPlatform) {
            return \array_merge(parent::getMappedDatabaseTypes($platform), ['enum']);
        }

        return parent::getMappedDatabaseTypes($platform);
    }
public function getMappedDatabaseTypes(AbstractPlatform $platform): array
    {
        if ($platform instanceof MySqlPlatform) {
            return \array_merge(parent::getMappedDatabaseTypes($platform), ['enum']);
        }

        return parent::getMappedDatabaseTypes($platform);
    }
public function getMappedDatabaseTypes ( AbstractPlatform $ platform ) : array { if ( $ platform instanceof MySqlPlatform ) { return \ array_merge ( parent :: getMappedDatabaseTypes ( $ platform ) , [ 'enum' ] ) ; } return parent :: getMappedDatabaseTypes ( $ platform ) ; }
Gets an array of database types that map to this Doctrine type.

@param AbstractPlatform $platform

@return array
Gets an array of database types that map to this Doctrine type .