File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 12
12
"illuminate/database" : " ^5.2" ,
13
13
"geo-io/wkb-parser" : " ^1.0" ,
14
14
"jmikola/geojson" : " ^1.0" ,
15
- "phoenixgao/laravel-postgres-extended-schema" : " ^0.14.0 "
15
+ "phoenixgao/laravel-postgres-extended-schema" : " ~0.15 "
16
16
},
17
17
"require-dev" : {
18
18
"phpunit/phpunit" : " ~4.5" ,
19
19
"mockery/mockery" : " 0.9.*" ,
20
- "satooshi/php-coveralls" : " ~0.6 " ,
21
- "codeclimate/php-test-reporter" : " dev-master " ,
20
+ "satooshi/php-coveralls" : " ~1.0 " ,
21
+ "codeclimate/php-test-reporter" : " ~0.3 " ,
22
22
"illuminate/pagination" : " ~5.0"
23
23
},
24
24
"autoload" : {
Original file line number Diff line number Diff line change @@ -23,13 +23,13 @@ public function newEloquentBuilder($query)
23
23
24
24
protected function performInsert (EloquentBuilder $ query , array $ options = [])
25
25
{
26
- foreach ($ this ->attributes as $ key => & $ value ) {
26
+ foreach ($ this ->attributes as $ key => $ value ) {
27
27
if ($ value instanceof GeometryInterface && ! $ value instanceof GeometryCollection) {
28
28
$ this ->geometries [$ key ] = $ value ; //Preserve the geometry objects prior to the insert
29
- $ value = $ this ->getConnection ()->raw (sprintf ("ST_GeogFromText('%s') " , $ value ->toWKT ()));
29
+ $ this -> attributes [ $ key ] = $ this ->getConnection ()->raw (sprintf ("ST_GeogFromText('%s') " , $ value ->toWKT ()));
30
30
} else if ($ value instanceof GeometryInterface && $ value instanceof GeometryCollection) {
31
31
$ this ->geometries [$ key ] = $ value ; //Preserve the geometry objects prior to the insert
32
- $ value = $ this ->getConnection ()->raw (sprintf ("ST_GeomFromText('%s', 4326) " , $ value ->toWKT ()));
32
+ $ this -> attributes [ $ key ] = $ this ->getConnection ()->raw (sprintf ("ST_GeomFromText('%s', 4326) " , $ value ->toWKT ()));
33
33
}
34
34
}
35
35
You can’t perform that action at this time.
0 commit comments