create-prisma-php-app 1.15.30 → 1.15.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -24,9 +24,7 @@ abstract class Utility
|
|
|
24
24
|
) {
|
|
25
25
|
if (isset($select) && is_array($select)) {
|
|
26
26
|
foreach ($select as $key => $value) {
|
|
27
|
-
if ($key === $timestamp)
|
|
28
|
-
continue;
|
|
29
|
-
}
|
|
27
|
+
if ($key === $timestamp) continue;
|
|
30
28
|
|
|
31
29
|
if (is_numeric($key) && is_string($value)) {
|
|
32
30
|
if (array_key_exists($value, $fields))
|
|
@@ -62,10 +60,10 @@ abstract class Utility
|
|
|
62
60
|
}
|
|
63
61
|
} else {
|
|
64
62
|
foreach (explode(',', $key) as $fieldName) {
|
|
63
|
+
if ($key === $timestamp) continue;
|
|
65
64
|
$fieldName = trim($fieldName);
|
|
66
65
|
|
|
67
66
|
if (!array_key_exists($fieldName, $fields)) {
|
|
68
|
-
// Additional debug information
|
|
69
67
|
$availableFields = implode(', ', array_keys($fields));
|
|
70
68
|
throw new \Exception("The field '$fieldName' does not exist in the $modelName model. Available fields are: $availableFields");
|
|
71
69
|
}
|
|
@@ -312,4 +310,4 @@ abstract class Utility
|
|
|
312
310
|
}
|
|
313
311
|
}
|
|
314
312
|
}
|
|
315
|
-
}
|
|
313
|
+
}
|