@@ -35,14 +35,14 @@ public function register()
35
35
if (class_exists ('Doctrine\DBAL\Types\Type ' )) {
36
36
// Prevent geometry type fields from throwing a 'type not found' error when changing them
37
37
$ geometries = [
38
- 'geometry ' => " Grimzy\LaravelMysqlSpatial\Doctrine\Geometry " ,
39
- 'point ' => " Grimzy\LaravelMysqlSpatial\Doctrine\Point " ,
40
- 'linestring ' => " Grimzy\LaravelMysqlSpatial\Doctrine\LineString " ,
41
- 'polygon ' => " Grimzy\LaravelMysqlSpatial\Doctrine\Polygon " ,
42
- 'multipoint ' => " Grimzy\LaravelMysqlSpatial\Doctrine\MultiPoint " ,
43
- 'multilinestring ' => " Grimzy\LaravelMysqlSpatial\Doctrine\MultiLineString " ,
44
- 'multipolygon ' => " Grimzy\LaravelMysqlSpatial\Doctrine\MultiPolygon " ,
45
- 'geometrycollection ' => " Grimzy\LaravelMysqlSpatial\Doctrine\GeometryCollection " ,
38
+ 'geometry ' => \ Grimzy \LaravelMysqlSpatial \Doctrine \Geometry::class ,
39
+ 'point ' => \ Grimzy \LaravelMysqlSpatial \Doctrine \Point::class ,
40
+ 'linestring ' => \ Grimzy \LaravelMysqlSpatial \Doctrine \LineString::class ,
41
+ 'polygon ' => \ Grimzy \LaravelMysqlSpatial \Doctrine \Polygon::class ,
42
+ 'multipoint ' => \ Grimzy \LaravelMysqlSpatial \Doctrine \MultiPoint::class ,
43
+ 'multilinestring ' => \ Grimzy \LaravelMysqlSpatial \Doctrine \MultiLineString::class ,
44
+ 'multipolygon ' => \ Grimzy \LaravelMysqlSpatial \Doctrine \MultiPolygon::class ,
45
+ 'geometrycollection ' => \ Grimzy \LaravelMysqlSpatial \Doctrine \GeometryCollection::class ,
46
46
];
47
47
$ typeNames = array_keys (\Doctrine \DBAL \Types \Type::getTypesMap ());
48
48
foreach ($ geometries as $ type => $ class ) {
0 commit comments