call static instead of self in Model

This commit is contained in:
Bence Pőcze 2023-05-07 01:14:01 +02:00
parent eae3746dd3
commit 336e3dbd3f
Signed by: bence
GPG Key ID: DC5BD6E95A333E6D

View File

@ -41,7 +41,7 @@ abstract class Model
{
$array = [];
foreach (self::getFields() as $key) {
foreach (static::getFields() as $key) {
$method = 'get' . str_replace('_', '', ucwords($key, '_'));
if (method_exists($this, $method)) {