Skip to content

Commit 9eacbac

Browse files
author
Pablo Sanchez
committed
[UPD] - Mapped functions to public schema
1 parent 8fdfef4 commit 9eacbac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Eloquent/PostgisTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ protected function performInsert(EloquentBuilder $query, array $options = [])
2626
foreach ($this->attributes as $key => $value) {
2727
if ($value instanceof GeometryInterface && ! $value instanceof GeometryCollection) {
2828
$this->geometries[$key] = $value; //Preserve the geometry objects prior to the insert
29-
$this->attributes[$key] = $this->getConnection()->raw(sprintf("public.public.ST_GeogFromText('%s')", $value->toWKT()));
29+
$this->attributes[$key] = $this->getConnection()->raw(sprintf("public.ST_GeogFromText('%s')", $value->toWKT()));
3030
} else if ($value instanceof GeometryInterface && $value instanceof GeometryCollection) {
3131
$this->geometries[$key] = $value; //Preserve the geometry objects prior to the insert
3232
$this->attributes[$key] = $this->getConnection()->raw(sprintf("public.ST_GeomFromText('%s', 4326)", $value->toWKT()));

0 commit comments

Comments
 (0)