groupBy() undefined in Model.php |
hello
in my model i use PHP Code: $this->select('.....') Code: Call to an undefined method App\Models\MyModel::groupBy() PHP Code: * @method $this groupBy($by, ?bool $escape = null)
phpstan errors can be tricky to diagnose with the code you provided. Can you provide additional context as to how and where you are calling this method. Also, it would be best to include your entire model file, so we can see any 'use' statements, and to see any defined class properties.
@paul That's right. I sent a PR https://github.com/codeigniter4/CodeIgniter4/pull/6433
Fixed. The fix will be included in v4.2.5. |
Welcome Guest, Not a member yet? Register Sign In |