Skip to content

Commit

Permalink
Merge pull request #3300 from insiders/redirect
Browse files Browse the repository at this point in the history
[RedirectBundle] Add order by to redirect admin list
  • Loading branch information
acrobat authored Dec 20, 2023
2 parents cf8e07e + 1b991a8 commit fb369e1
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace Kunstmaan\RedirectBundle\AdminList;

use Doctrine\ORM\EntityManager;
use Doctrine\ORM\QueryBuilder;
use Kunstmaan\AdminBundle\Helper\DomainConfigurationInterface;
use Kunstmaan\AdminBundle\Helper\Security\Acl\AclHelper;
use Kunstmaan\AdminListBundle\AdminList\Configurator\AbstractDoctrineORMAdminListConfigurator;
Expand Down Expand Up @@ -91,4 +92,10 @@ public function getEntityName()
{
return 'Redirect';
}

public function adaptQueryBuilder(QueryBuilder $queryBuilder)
{
parent::adaptQueryBuilder($queryBuilder);
$queryBuilder->orderBy('b.id', 'ASC');
}
}

0 comments on commit fb369e1

Please sign in to comment.