prisma-client-php 0.0.53 → 2.0.0

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
@@ -188,12 +188,12 @@ const readJsonFile = (filePath) => {
188
188
  return JSON.parse(jsonData);
189
189
  };
190
190
  const npmPinnedVersions = {
191
- prisma: "^6.5.0",
192
- "@prisma/client": "^6.5.0",
193
- "@prisma/internals": "^6.5.0",
194
- tsx: "^4.19.3",
195
- typescript: "^5.8.2",
196
- "@types/node": "^22.13.11",
191
+ prisma: "^6.8.2",
192
+ "@prisma/client": "^6.8.2",
193
+ "@prisma/internals": "^6.8.2",
194
+ tsx: "^4.19.4",
195
+ typescript: "^5.8.3",
196
+ "@types/node": "^22.15.18",
197
197
  };
198
198
  function npmPkg(name) {
199
199
  return npmPinnedVersions[name] ? `${name}@${npmPinnedVersions[name]}` : name;
@@ -1169,6 +1169,10 @@ final class PPHPUtility
1169
1169
  $baseQuery['where'][$childFk] = ['in' => $parentIds];
1170
1170
  }
1171
1171
 
1172
+ if (isset($baseQuery['select']) && $baseQuery['select'] !== []) {
1173
+ $baseQuery['select'][$childFk] = true;
1174
+ }
1175
+
1172
1176
  $rows = $relatedInstance->findMany($baseQuery);
1173
1177
 
1174
1178
  $grouped = [];
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.53",
4
+ "version": "2.0.0",
5
5
  "main": "index.js",
6
6
  "type": "module",
7
7
  "scripts": {
@@ -9,7 +9,7 @@
9
9
  "test": "echo \"Error: no test specified\" && exit 1"
10
10
  },
11
11
  "bin": {
12
- "ppo": "/dist/index.js"
12
+ "ppo": "dist/index.js"
13
13
  },
14
14
  "repository": {
15
15
  "type": "git",