geocoder-php/BazingaGeocoderBundle

Geocode is triggered when trying update table that has address and coordinates

theedov opened this issue · 1 comments

Hi,
I use annotations in my Entity to get coordinates and store them in a db table.
But when I try to update that entity without touching the address, it still triggers geocoding.

    /**
     * @ORM\Column(type="string", length=255)
     * @Geocoder\Address
     */
    private $location;

    /**
     * @ORM\Column(type="decimal", precision=10, scale=8)
     * @Geocoder\Latitude()
     */
    private $latitude;

    /**
     * @ORM\Column(type="decimal", precision=11, scale=8)
     * @Geocoder\Longitude()
     */
    private $longitude;

Any ideas how to avoid that?

Duplicate of #280 ? Also I made a PR #281 but I can't merge it because of build status