Activerecord "search()" Function

I’m getting this error


CompanyApp::search() should be compatible with ActiveRecord::search($pageSize = 10, $order_by = NULL, $conditions = NULL, $sortAttributes = Array)

What could be the problem?

This problem :childClass = CompanyApp::search() has different arguments, or a different access level public/private/protected)

than parentClass = ActiveRecord::search().

Check this http://stackoverflow.com/questions/3115388/declaration-of-methods-should-be-compatible-with-parent-methods-in-php

1 Like