Skip to content

Commit 2ca0dba

Browse files
committed
add geometry as db type
1 parent 2e8374f commit 2ca0dba

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/PostgisConnection.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ public function __construct($pdo, $database = '', $tablePrefix = '', array $conf
88

99
// Prevent geography type fields from throwing a 'type not found' error.
1010
$this->getDoctrineSchemaManager()->getDatabasePlatform()->registerDoctrineTypeMapping('geography', 'string');
11+
$this->getDoctrineSchemaManager()->getDatabasePlatform()->registerDoctrineTypeMapping('geometry', 'string');
1112
}
1213

1314
/**

0 commit comments

Comments
 (0)