prisma-client-php 0.0.25 → 0.0.27
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.
|
@@ -230,13 +230,18 @@ final class PPHPUtility
|
|
|
230
230
|
continue;
|
|
231
231
|
}
|
|
232
232
|
|
|
233
|
+
if ($key === '_count' && is_array($value) && array_key_exists('select', $value)) {
|
|
234
|
+
$includes[$key] = $value;
|
|
235
|
+
continue;
|
|
236
|
+
}
|
|
237
|
+
|
|
233
238
|
self::processIncludeValue($key, $value, $relatedEntityFields, $fields, $modelName, $key);
|
|
234
239
|
|
|
235
240
|
if (is_numeric($key) && is_string($value)) {
|
|
236
241
|
throw new Exception("The '$value' is indexed, waiting example: ['$value' => true]");
|
|
237
242
|
}
|
|
238
243
|
|
|
239
|
-
if (is_array($value) &&
|
|
244
|
+
if (is_array($value) && array_key_exists($key, $fields)) {
|
|
240
245
|
$includes[$key] = $value;
|
|
241
246
|
} elseif (is_bool($value)) {
|
|
242
247
|
$includes[$key] = $value;
|
package/package.json
CHANGED