Closed Carameil closed 1 year ago
You need to implement the getName()
method. Here's a cookbook article from the Doctrine docs: https://www.doctrine-project.org/projects/doctrine-orm/en/2.14/cookbook/advanced-field-value-conversion-using-custom-mapping-types.html#advanced-field-value-conversion-using-custom-mapping-types
Hi! I have custom type for doctrine, which extends from Jsor\Doctrine\PostGIS\Types\GeometryType:
My Entity field:
When I create the first migration - it's ok, but if I try to work with my DB (update, new migrations, diff) then I get error:
The type of a spatial column cannot be changed (Requested changing type from "geometry" to "geometry" for column "center_location" in table "parking")
Has anyone encountered this? Any idea how to fix it? I would be grateful for your answers