From a576496817af2c7cd52e9df04730c06ebec81a94 Mon Sep 17 00:00:00 2001 From: George Buckingham Date: Tue, 17 Aug 2021 21:15:48 +0100 Subject: [PATCH] Recognise GEOMCOLLECTION geometry type (MySQL 8) (#33) --- src/Engine/DatabaseEngine.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Engine/DatabaseEngine.php b/src/Engine/DatabaseEngine.php index e5fb0e1..0e192f9 100644 --- a/src/Engine/DatabaseEngine.php +++ b/src/Engine/DatabaseEngine.php @@ -224,6 +224,7 @@ private function getProxyClassName(string $geometryType) : string 'COMPOUNDCURVE' => Proxy\CompoundCurveProxy::class, 'CURVE' => Proxy\CurveProxy::class, 'CURVEPOLYGON' => Proxy\CurvePolygonProxy::class, + 'GEOMCOLLECTION' => Proxy\GeometryCollectionProxy::class, /* MySQL 8 - https://github.com/brick/geo/pull/33 */ 'GEOMETRY' => Proxy\GeometryProxy::class, 'GEOMETRYCOLLECTION' => Proxy\GeometryCollectionProxy::class, 'LINESTRING' => Proxy\LineStringProxy::class,