create-prisma-php-app 1.16.1 → 1.16.2

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.
@@ -212,6 +212,11 @@ abstract class Utility
212
212
  $groupedConditions = [];
213
213
  if ($key === 'NOT') {
214
214
  self::processNotCondition($value, $groupedConditions, $bindings, $dbType, $prefix . $key . '_', $level);
215
+ if (!empty($groupedConditions)) {
216
+ $conditionGroup = '(' . implode(" $key ", $groupedConditions) . ')';
217
+ $conditionGroup = 'NOT ' . $conditionGroup;
218
+ $sqlConditions[] = $conditionGroup;
219
+ }
215
220
  } else {
216
221
  foreach ($value as $conditionKey => $subCondition) {
217
222
  if (is_numeric($conditionKey)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-prisma-php-app",
3
- "version": "1.16.1",
3
+ "version": "1.16.2",
4
4
  "description": "Prisma-PHP: A Revolutionary Library Bridging PHP with Prisma ORM",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",