prisma-client-php 4.1.3 → 4.1.4

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.
@@ -1430,6 +1430,15 @@ final class PPHPUtility
1430
1430
  if (!$requestOption) {
1431
1431
  return $relatedResult;
1432
1432
  }
1433
+
1434
+ if ($modelRelatedFieldIsList && $isExplicitOneToMany) {
1435
+ return [];
1436
+ }
1437
+
1438
+ if ($modelRelatedFieldIsList && empty($modelRelatedFromFields)) {
1439
+ return [];
1440
+ }
1441
+
1433
1442
  if (!$relatedResult) {
1434
1443
  throw new Exception("Failed to process related record for '{$relatedFieldName}'.");
1435
1444
  }
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": "4.1.3",
4
+ "version": "4.1.4",
5
5
  "main": "index.js",
6
6
  "type": "module",
7
7
  "scripts": {