首页 文章

Symfony PostGIS - db逆向工程

提问于
浏览
0

情况:
Symfony 3.2
jsor / doctrine-postgis 1.3 - 在config中配置了服务和所需的数据类型

PostGIS扩展的PostgreSQL数据库 . 两种模式:

  • geo

  • sch1

Schema geo具有几何图形的表格 .
Schema geo有postgis扩展 .
Schema geo具有views_columns等视图

当我试图跑

./bin/console doctrine:mapping:import --force GeoBundle xml

我收到错误

[Doctrine \ DBAL \ Exception \ TableNotFoundException]执行'SELECT coord_dimension,srid,类型FROM geometry_columns WHERE f_table_name =?时发生异常AND f_geometry_column =?' with params [“boisko”,“geom”]:SQLSTATE [42P01]:未定义的表:7错误:关系“geometry_columns”不存在第2行:FROM geometry_columns

[Doctrine \ DBAL \ Driver \ PDOException] SQLSTATE [42P01]:未定义的表:7错误:关系“geometry_columns”不存在第2行:FROM geometry_columns

[PDOException] SQLSTATE [42P01]:未定义的表:7错误:关系“geometry_columns”不存在第2行:FROM geometry_columns

我想知道是否有人有类似的问题,可以帮助我解决它 .

1 回答

  • 0

    问题是 search_path
    一旦我设置它,一切都按预期工作

相关问题