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