-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set-up problem #3
Comments
This depends on how you use and setup Doctrine. Are you using it with Symfony or any other framework? |
Symfony, with config in yml. |
See http://symfony.com/doc/current/cookbook/doctrine/event_listeners_subscribers.html Your config would be something like: services:
doctrine_postgis_subscriber_default:
class: Jsor\Doctrine\PostGIS\Event\ORMSchemaEventSubscriber
tags:
- { name: doctrine.event_subscriber, connection: default } |
I created the service, but in don't see any differences. in my database table, i have some column : (....other column....) I don't understand how to use them with doctrine, doctrine don't want my "point",
i tried to update my entities like this :
TO
and then doctrine:schema:update, but it's the same error... |
This error occures while DBAL inspects your database and don't have a DBAL type for the POINT column. You need to change the column type manually in your database. |
it's seems it beginning to work, thank's a lot ! |
Glad to hear. Let me know how it goes :) |
yoooops to late x) i don't know how to 're-open', guess i will juste write another comment here ? now i have :
looks like "geography" works well but "geometry" does not ... |
Hmm...can you try to register the DBAL type manually: doctrine:
dbal:
types:
geometry: Jsor\Doctrine\PostGIS\Types\GeometryType |
Lol, today it works well without doing anything x) maybe it was a cache problem or something like this. Thanks you a lot anyway ! |
Yeah, cache probably. Glad it works now. Let me know if have any other questions or problems. |
A little message to say that this post is still usefull in 2016. Thanks #jsor |
These little messages are written in seconds and give motivation for days. Thanks and a happy new year! |
Hello! |
Hi ! i'm trying to use your doctrine-postgis extension but i have some trouble.
the "installation" part is ok, but then you said :
I don't understand where to put this or what i need to do with this.
Thanks
https://github.com/jsor/doctrine-postgis/issues/new#fullscreen
The text was updated successfully, but these errors were encountered: