sonata-project/SonataAdminBundle — Issue #347: Wrong type hinting in BaseFieldDescripton::setAssocationHandling method
Author: l3l0
Created: 2011-10-23 22:37:35+00:00
State: open

I noticed that BaseFieldDescripton::setAssocationHandling method need Sonata\AdminBundle\Admin\AdminInterface as parameter, but using method which is not defined in this interface.

see: https://github.com/sonata-project/SonataAdminBundle/blob/master/Admin/BaseFieldDescription.php#L317

I think that changing type hint to Admin is not a option (Admin object can be too heavy dependency). Maybe method setParentFieldDescription can be defined in Sonata\AdminBundle\Admin\AdminInterface? (But then we can broke some implementations of AdminInterface). I do not create pull request, because i do not know SonataAdminBundle so good yet.
I've noticed problem only.