prisma-client-php 0.0.49 → 0.0.50

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.
@@ -905,12 +905,12 @@ final class PPHPUtility
905
905
  throw new Exception("Cannot connectOrCreate multiple records for a non-list relation '$relatedFieldName'.");
906
906
  }
907
907
 
908
- $existing = $relatedClass->findUnique(['where' => $op]);
908
+ $existing = $relatedClass->findUnique(['where' => $op['where']]);
909
909
 
910
910
  if ($existing) {
911
911
  $relatedResult = $existing;
912
912
  } else {
913
- $relatedResult = $relatedClass->create(['data' => $op]);
913
+ $relatedResult = $relatedClass->create(['data' => $op['create']]);
914
914
  }
915
915
  }
916
916
  break;
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.49",
4
+ "version": "0.0.50",
5
5
  "main": "index.js",
6
6
  "type": "module",
7
7
  "scripts": {