beyondcode / invoker-community

74 stars 2 forks source link

Unknown database type geometry requested, #354

Open sahamilton opened 1 year ago

sahamilton commented 1 year ago

The application is running fine locally but when ever I open any model I receive this error. Not sure where to start debugging this.

OS: win32 Invoker Version: 2.13.2 Laravel Version: 10.18.0 Local project: true PHP Binary: C:\laragon\bin\php\php-8.1.10-Win32-vs16-x64\php.exe Route: /project/index?class=App%5CRegion&time=1692284483391&project=local-tmsjNsxkcCDccnzWik62Pb

Error:

Doctrine\DBAL\Exception 

  Unknown database type geometry requested, Doctrine\DBAL\Platforms\MySQL80Platform may not support it.

  at phar://C:/Users/steph/AppData/Local/Programs/Invoker/resources/invoker_l10.phar/vendor/doctrine/dbal/src/Platforms/AbstractPlatform.php:182
    178▕             $this->initializeAllDoctrineTypeMappings();
    179▕         }
    180▕         $dbType = \strtolower($dbType);
    181▕         if (!isset($this->doctrineTypeMapping[$dbType])) {
  ➜ 182▕             throw new \Doctrine\DBAL\Exception('Unknown database type ' . $dbType . ' requested, ' . static::class . ' may not support it.');
    183▕         }
    184▕         return $this->doctrineTypeMapping[$dbType];
    185▕     }
    186▕     public function hasDoctrineTypeMappingFor($dbType)

      +4 vendor frames 

  5   phar://C:/Users/steph/AppData/Local/Programs/Invoker/resources/invoker_l10.phar/src/Factories/AttributeCollection.php:25
      Doctrine\DBAL\Schema\MySQLSchemaManager::listTableColumns("branches")

  6   phar://C:/Users/steph/AppData/Local/Programs/Invoker/resources/invoker_l10.phar/src/Factories/AttributeCollection.php:15
      _HumbugBox4ff0af112613\Invoker\Factories\AttributeCollection::getColumns("App\Branch")
sahamilton commented 6 months ago

DItto on Linux (mint)n My rep uses MySql point (geometry) fields