This repository was archived by the owner on Oct 1, 2024. It is now read-only.
Commit 0a8aa31
thaisonle
Fixed PostgisTrait to handle GeometryCollection correctly
The geometrycollection migration method inserts the column as a geometry column instead of a geography column. This causes saves to fail since the insert is trying to save a geography instead of a geometry.
The GeometryCollection class does extend the Geometry class which implements the GeometryInterface that is checked in the if statement to skip model attributes that are not geometries.1 parent 84a6d3f commit 0a8aa31
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
30 | 33 | | |
31 | 34 | | |
32 | 35 | | |
| |||
0 commit comments