prisma-client-php 0.0.46 → 0.0.48
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.
package/dist/init.js
CHANGED
|
@@ -75,6 +75,10 @@ function installNpmDependencies(isPrismaPHP) {
|
|
|
75
75
|
packageJson.prisma = {
|
|
76
76
|
seed: "tsx prisma/seed.ts",
|
|
77
77
|
};
|
|
78
|
+
if (!isPrismaPHP) {
|
|
79
|
+
packageJson.type = "module";
|
|
80
|
+
}
|
|
81
|
+
fs.writeFileSync(packageJsonPath, JSON.stringify(packageJson, null, 2));
|
|
78
82
|
} else {
|
|
79
83
|
console.error("package.json does not exist.");
|
|
80
84
|
return;
|
|
@@ -90,7 +94,6 @@ function installNpmDependencies(isPrismaPHP) {
|
|
|
90
94
|
npmPkg("typescript"),
|
|
91
95
|
npmPkg("@types/node")
|
|
92
96
|
);
|
|
93
|
-
packageJson.type = "module";
|
|
94
97
|
}
|
|
95
98
|
const packagesStr = npmDependencies.join(" ");
|
|
96
99
|
try {
|
|
@@ -868,8 +868,8 @@ final class PPHPUtility
|
|
|
868
868
|
$modelRelatedFieldType,
|
|
869
869
|
$dbType,
|
|
870
870
|
$pdo,
|
|
871
|
+
$modelFieldData[$modelClass->_primaryKey],
|
|
871
872
|
$relatedFieldData[$relatedClass->_primaryKey],
|
|
872
|
-
$modelFieldData[$modelClass->_primaryKey]
|
|
873
873
|
);
|
|
874
874
|
} else {
|
|
875
875
|
if (!$modelRelatedFieldIsList && count($operations) > 1) {
|
|
@@ -896,8 +896,8 @@ final class PPHPUtility
|
|
|
896
896
|
$modelRelatedFieldType,
|
|
897
897
|
$dbType,
|
|
898
898
|
$pdo,
|
|
899
|
+
$modelFieldData[$modelClass->_primaryKey],
|
|
899
900
|
$record->{$relatedClass->_primaryKey},
|
|
900
|
-
$modelFieldData[$modelClass->_primaryKey]
|
|
901
901
|
);
|
|
902
902
|
} else {
|
|
903
903
|
|
|
@@ -924,8 +924,8 @@ final class PPHPUtility
|
|
|
924
924
|
$modelRelatedFieldType,
|
|
925
925
|
$dbType,
|
|
926
926
|
$pdo,
|
|
927
|
+
$modelFieldData[$modelClass->_primaryKey],
|
|
927
928
|
$relatedCreatedData->{$relatedClass->_primaryKey},
|
|
928
|
-
$modelFieldData[$modelClass->_primaryKey]
|
|
929
929
|
);
|
|
930
930
|
} else {
|
|
931
931
|
if (!$modelRelatedFieldIsList && count($operations) > 1) {
|
package/package.json
CHANGED