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
Inside the AbstractTypeGuesser we are callingSonata\AdminBundle\Model\ModelManagerInterface::getParentMetadataForProperty but this method is not part of that contract.
So we are actually expecting a Sonata\DoctrineORMAdminBundle\Model\ModelManager for it to work.
I also notice that the fixFieldDescription is in every builder, but is only called in the SonataAdmin::FormMapper https://github.com/sonata-project/SonataAdminBundle/search?q=fixFieldDescription ; there is no need to make it public in other builders.
A maybe better idea could be to move the addFilter and addField to the SonataAdmin code. When I look at the code I think it just require a BuilderInterface::getGuesser method and a DatagridBuilderInterface::getFilterFactory method.
Feature Request
Inside the
AbstractTypeGuesser
we are callingSonata\AdminBundle\Model\ModelManagerInterface::getParentMetadataForProperty
but this method is not part of that contract.So we are actually expecting a
Sonata\DoctrineORMAdminBundle\Model\ModelManager
for it to work.As @VincentLanglet suggested we could
ModelManagerInterface
and add this methodOr any other ideas?
The text was updated successfully, but these errors were encountered: