zikula-modules/EZComments

Error in the method name

Closed this issue · 1 comments

It's not possible access to the stats: /comments/admin/modulestats
Error log:
Uncaught PHP Exception BadMethodCallException: "Undefined method 'mostActivePoster'. The method name must start with either findBy or findOneBy!"

Caller controller

$counts['mostActive'] = $repo->mostActivePoster();

Repository

public function mostActivePosters($number)

How you could see, the repository contain "s" at end that the controller haven't.
You must change the name in controller or repository in order to match.

Thanks for the detailed report. Fixed.