@mikro-orm/core 7.0.3-dev.11 → 7.0.3-dev.13

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.
@@ -1726,12 +1726,12 @@ export class MetadataDiscovery {
1726
1726
  }
1727
1727
  }
1728
1728
  if (prop.kind === ReferenceKind.SCALAR && !(mappedType instanceof t.unknown)) {
1729
- if (!prop.columnTypes &&
1730
- prop.nativeEnumName &&
1729
+ if (prop.nativeEnumName &&
1731
1730
  meta.schema !== this.#platform.getDefaultSchemaName() &&
1732
1731
  meta.schema &&
1733
1732
  !prop.nativeEnumName.includes('.')) {
1734
- prop.columnTypes = [`${meta.schema}.${prop.nativeEnumName}`];
1733
+ const suffix = prop.columnTypes?.[0]?.endsWith('[]') ? '[]' : '';
1734
+ prop.columnTypes = [`${meta.schema}.${prop.nativeEnumName}${suffix}`];
1735
1735
  }
1736
1736
  else {
1737
1737
  prop.columnTypes ??= [mappedType.getColumnType(prop, this.#platform)];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mikro-orm/core",
3
- "version": "7.0.3-dev.11",
3
+ "version": "7.0.3-dev.13",
4
4
  "description": "TypeScript ORM for Node.js based on Data Mapper, Unit of Work and Identity Map patterns. Supports MongoDB, MySQL, PostgreSQL and SQLite databases as well as usage with vanilla JavaScript.",
5
5
  "keywords": [
6
6
  "data-mapper",
package/utils/Utils.js CHANGED
@@ -129,7 +129,7 @@ export function parseJsonSafe(value) {
129
129
  /** Collection of general-purpose utility methods used throughout the ORM. */
130
130
  export class Utils {
131
131
  static PK_SEPARATOR = '~~~';
132
- static #ORM_VERSION = '7.0.3-dev.11';
132
+ static #ORM_VERSION = '7.0.3-dev.13';
133
133
  /**
134
134
  * Checks if the argument is instance of `Object`. Returns false for arrays.
135
135
  */