feature/slug-handling #18

Merged
bence merged 4 commits from feature/slug-handling into master 2023-05-07 01:52:34 +02:00
Showing only changes of commit 6989e1dcf3 - Show all commits

View File

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