Skip to content

How to use SQL Mapper save method to insert/update a geometry field type? #1267

Open

Description

@gmzu

I tried to use

$entity->position="ST_GeomFromText(POINT(39.31171 16.86186), 4326)";
$entity->save();

but I get this error
SQLSTATE[22003]: Numeric value out of range: 1416 Cannot get geometry object from data you send to the GEOMETRY field

no problem if I use $db->exec() method with INSERT or UPDATEquery.
Suggestions? It's not really possible to use sql mapper?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions