Create gender admin entity and add configuration to use it

entity, migration, controller, repository, templates, form added
This commit is contained in:
2024-09-25 16:02:40 +02:00
parent f7f8319749
commit f428afc7ca
10 changed files with 295 additions and 2 deletions

View File

@@ -0,0 +1,17 @@
<?php
namespace Chill\MainBundle\Controller;
use Chill\MainBundle\CRUD\Controller\CRUDController;
use Chill\MainBundle\Pagination\PaginatorInterface;
use Symfony\Component\HttpFoundation\Request;
class GenderController extends CRUDController
{
protected function orderQuery(string $action, $query, Request $request, PaginatorInterface $paginator)
{
$query->addOrderBy('e.order', 'ASC');
return parent::orderQuery($action, $query, $request, $paginator);
}
}