dustin10/VichGeographicalBundle — Issue #17: "Unable to find GeograhicalQuery annotation."
Author: michmichant
Created: 2011-11-24 09:39:32+00:00
State: open

I just add the bundle to my project and I have the following class :

use Vich\GeographicalBundle\Annotation as Vich;

/**
*
* @ORM\Entity()
* @Vich\Geographical(on="update")
*/
class Contact
{

/**Some variables */

/**
* @ORM\Column(type="decimal", scale="7")
*/
protected $latitude;

/**
* @ORM\Column(type="decimal", scale="7")
*/
protected $longitude;

/**
* @Vich\GeographicalQuery
*
*/
public function getAdress()
{
return sprintf(
'%s, %s, %s %s',
$this->rue,
$this->ville,
$this->pays,
$this->cp
);
}
/**Some methods */
}

No special configuration.

When the object is updated I have the following error :

"Unable to find GeograhicalQuery annotation. "

Im not sure if I forgot something or if it's a problem with the bundle.

Thanks a lot for your work !