picoss / SonataExtraAdminBundle

MIT License
18 stars 10 forks source link

gedmo/doctrine-extensions required #10

Open kfrankiewicz opened 5 years ago

kfrankiewicz commented 5 years ago

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

mohamedyasser commented 5 years ago

@kfrankiewicz you need to install stof_doctrine_extensions and enable Sortable filter