| Conditions | 1 |
| Paths | 1 |
| Total Lines | 6 |
| Code Lines | 2 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 3 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php namespace LaravelSpatial; |
||
| 17 | 15 | public function __construct($pdo, $database = '', $tablePrefix = '', array $config = []) |
|
| 18 | { |
||
| 19 | 15 | parent::__construct($pdo, $database, $tablePrefix, $config); |
|
| 20 | |||
| 21 | // Prevent geography type fields from throwing a 'type not found' error. |
||
| 22 | 15 | $this->getDoctrineSchemaManager()->getDatabasePlatform()->registerDoctrineTypeMapping('geography', 'string'); |
|
| 23 | 15 | } |
|
| 45 |