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) && isset($value['include'])) {
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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "prisma-client-php",
3
3
  "description": "Prisma Client PHP is an auto-generated query builder that enables type-safe database access in PHP.",
4
- "version": "0.0.25",
4
+ "version": "0.0.27",
5
5
  "main": "index.js",
6
6
  "type": "module",
7
7
  "scripts": {