79520017

Date: 2025-03-19 11:16:59
Score: 1
Natty:
Report link

The function getFilterParameters is marked as final since Sonata 4.0.0. You need to use the configureDefaultFilterValues function

protected function configureDefaultFilterValues(array &$filterValues): void
{
    $filterValues['assignee'] = 
        [
            'value' => $this->getUser()->getId(),
        ];
}

Source : https://github.com/sonata-project/SonataAdminBundle/blob/4.0.0/src/Admin/AbstractAdmin.php

Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: HRoux