SonataExtraAdminBundle icon indicating copy to clipboard operation
SonataExtraAdminBundle copied to clipboard

gedmo/doctrine-extensions required

Open kfrankiewicz opened this issue 6 years ago • 1 comments

Hi, https://github.com/picoss/SonataExtraAdminBundle/blob/master/Entity/Repository/SortableRepository.php#L21 This line uses a class from gedmo/doctrine-extensions but this package is not required by composer. Even if SortableRepository is not used directly by my script (I don't use sortable anywhere, just image type in $showMapper), Symfony's cache:clear checks the SortableRepository class and throws an error, because gedmo libraries don't exist:

PHP Fatal error: Class 'Gedmo\Sortable\Entity\Repository\SortableRepository' not found in /***/vendor/picoss/sonata-extra-admin-bundle/Entity/Repository/SortableRepository.php on line 21

kfrankiewicz avatar Dec 14 '18 11:12 kfrankiewicz

@kfrankiewicz you need to install stof_doctrine_extensions and enable Sortable filter

mohamedyasser avatar Jan 22 '19 06:01 mohamedyasser