ollietb / OhGoogleMapFormTypeBundle

Set latitude and longitude values on a form using Google Maps
MIT License
30 stars 76 forks source link

SonataAdminBundle #13

Closed kubr closed 11 years ago

kubr commented 11 years ago

What should I do to make this bundle work with SonataAdminBundle? I configured OhGoogleMapFormTypeBundle based on README. This is my configureFormFields method:

protected function configureFormFields(FormMapper $formMapper)
{
    $formMapper
        ->with("Map")
            ->add('latlng', new GoogleMapType())
        ->end()
    ;
}

I'm getting error:

Please define a type for field `latlng` in `GM\AppBundle\Admin\PlaceAdmin`
ollietb commented 11 years ago

Hi. I'm sorry, I don't use SonataAdminBundle. Did you manage to fix your issues?

kubr commented 11 years ago

Hi. Yes, I post the question on StackOverflow and got the right answer :) http://stackoverflow.com/questions/17340321/ohgooglemapformtypebundle-with-sonataadminbundle