You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Resources/doc/doctrine.md
+25Lines changed: 25 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,8 @@ Wouldn't it be great if you could automatically save the coordinates of a users
6
6
address every time it is updated? Wait not more here is the feature you been always
7
7
wanted.
8
8
9
+
First of all, update your entity:
10
+
9
11
```php
10
12
11
13
use Bazinga\GeocoderBundle\Mapping\Annotations as Geocoder;
@@ -30,7 +32,30 @@ class User
30
32
*/
31
33
private $longitude;
32
34
}
35
+
```
36
+
37
+
Secondly, register the Doctrine event listener and its dependencies in your `services.yaml` file.
38
+
You have to indicate which provider to use to reverse geocode the address. Here we use `acme` provider we declared in bazinga_geocoder configuration earlier.
0 commit comments