I had a finder method called "findActive" in my CarsTable.php , I call it from another controller: VehiclesController.php :
CarsTable.php
public function findActive(Query $query, array $options): Query
{ ..... }
// Controller VehiclesController.php
$carsTable = TableRegistry::getTableLocator()->get('cars');
$activeCars = $carsTable->find('active');
Before I migrated it to cake 4 it was working fine. Any clue?
Try the following