Commit bb0a2f33 authored by i.vasilenko@iq-adv.ru's avatar i.vasilenko@iq-adv.ru
Browse files

Sort names

parent f625d3a8
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -16,13 +16,13 @@ use Doctrine\Persistence\ManagerRegistry;
class QuestRepository extends ServiceEntityRepository
{
    public const SORT_TYPES = [
        'ASC',
        'DESC'
        'По возрастанию' => 'ASC',
        'По убыванию' => 'DESC'
    ];
    public const SORT_FIELDS = [
        'name',
        'date',
        'final_date'
        'Название' => 'name',
        'Дата проведения' => 'date',
        'Дата финальной записи' => 'final_date'
    ];

    public function __construct(ManagerRegistry $registry)