(alias: Alias<any>)
| 4266 | } |
| 4267 | |
| 4268 | private getSchema(alias: Alias<any>): string | undefined { |
| 4269 | const { meta } = alias; |
| 4270 | const metaSchema = meta.schema && meta.schema !== '*' ? meta.schema : undefined; |
| 4271 | const schema = this.#state.schema ?? metaSchema ?? this.em?.schema ?? this.em?.config.getSchema(true); |
| 4272 | |
| 4273 | if (schema === this.platform.getDefaultSchemaName()) { |
| 4274 | return undefined; |
| 4275 | } |
| 4276 | |
| 4277 | return schema; |
| 4278 | } |
| 4279 | |
| 4280 | /** @internal */ |
| 4281 | createAlias<U = unknown>( |
no test coverage detected